pub trait WriteDyn:
Unpin
+ Send
+ Sync {
// Required methods
fn write_dyn(&mut self, bs: Buffer) -> BoxedFuture<'_, Result<()>>;
fn copy_from_dyn<'a>(
&'a mut self,
path: &'a str,
args: OpRead,
range: BytesRange,
) -> BoxedFuture<'a, Result<()>>;
fn close_dyn(&mut self) -> BoxedFuture<'_, Result<Metadata>>;
fn abort_dyn(&mut self) -> BoxedFuture<'_, Result<()>>;
}Required Methods§
Sourcefn write_dyn(&mut self, bs: Buffer) -> BoxedFuture<'_, Result<()>>
fn write_dyn(&mut self, bs: Buffer) -> BoxedFuture<'_, Result<()>>
The dyn version of Write::write.
Sourcefn copy_from_dyn<'a>(
&'a mut self,
path: &'a str,
args: OpRead,
range: BytesRange,
) -> BoxedFuture<'a, Result<()>>
fn copy_from_dyn<'a>( &'a mut self, path: &'a str, args: OpRead, range: BytesRange, ) -> BoxedFuture<'a, Result<()>>
The dyn version of Write::copy_from.
Sourcefn close_dyn(&mut self) -> BoxedFuture<'_, Result<Metadata>>
fn close_dyn(&mut self) -> BoxedFuture<'_, Result<Metadata>>
The dyn version of Write::close.
Sourcefn abort_dyn(&mut self) -> BoxedFuture<'_, Result<()>>
fn abort_dyn(&mut self) -> BoxedFuture<'_, Result<()>>
The dyn version of Write::abort.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".