Trait Copy
pub trait Copy:
Unpin
+ Send
+ Sync {
// Required methods
fn next(
&mut self,
) -> impl Future<Output = Result<Option<usize>, Error>> + MaybeSend;
fn close(
&mut self,
) -> impl Future<Output = Result<Metadata, Error>> + MaybeSend;
fn abort(&mut self) -> impl Future<Output = Result<(), Error>> + MaybeSend;
}Expand description
Copy is the trait that OpenDAL returns for stateful copy operations.
Required Methods§
fn next(
&mut self,
) -> impl Future<Output = Result<Option<usize>, Error>> + MaybeSend
fn next( &mut self, ) -> impl Future<Output = Result<Option<usize>, Error>> + MaybeSend
Drive the copy operation forward.
Ok(Some(n)) means the copy operation made progress by n bytes.
Ok(None) means the copy operation has completed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".