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§

source

type Error: Error + Send + Sync + 'static

An error that can occur while writing the chunk to a stream.

Required Methods§

source

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.

Implementors§