Trait xwt_core::stream::WriteChunk
source · 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.
Object Safety§
This trait is not object safe.