pub trait Copy:
Unpin
+ Send
+ Sync {
// Required methods
fn next(
&mut self,
) -> impl Future<Output = Result<Option<usize>>> + MaybeSend;
fn close(&mut self) -> impl Future<Output = Result<Metadata>> + MaybeSend;
fn abort(&mut self) -> impl Future<Output = Result<()>> + MaybeSend;
}Expand description
Copy is the trait that OpenDAL returns for stateful copy operations.
Required Methods§
Sourcefn next(&mut self) -> impl Future<Output = Result<Option<usize>>> + MaybeSend
fn next(&mut self) -> impl Future<Output = Result<Option<usize>>> + 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".