pub trait ReadChunk<ChunkType: ?Sized + ReadableChunk>: Send {
type Error: Error + Send + Sync + 'static;
// Required method
fn read_chunk(
&mut self,
max_length: usize,
ordered: bool
) -> impl Future<Output = Result<Option<Chunk<<ChunkType as ReadableChunk>::Data<'_>>>, Self::Error>> + Send;
}
Expand description
Read a Chunk
from a stream.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.