WriteChunk

Trait 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.

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.

Implementors§