pub trait WriteChunk<ChunkType: ?Sized + WriteableChunk>: Send {
type Error: Error + Send + Sync + 'static;
// Required method
fn write_chunk<'a>(
&'a mut self,
buf: <ChunkType as WriteableChunk>::Data<'a>,
) -> impl Future<Output = Result<(), Self::Error>> + 'a + Send;
}
Expand description
Write a Chunk
to a stream.
Required Associated Types§
Required Methods§
Sourcefn write_chunk<'a>(
&'a mut self,
buf: <ChunkType as WriteableChunk>::Data<'a>,
) -> impl Future<Output = Result<(), Self::Error>> + 'a + Send
fn write_chunk<'a>( &'a mut self, buf: <ChunkType as WriteableChunk>::Data<'a>, ) -> impl Future<Output = Result<(), Self::Error>> + 'a + Send
Write the data with the offset information from a stream.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.