Skip to main content

Reader

Trait Reader 

Source
pub trait Reader: Send {
    // Required method
    fn chunk(&mut self) -> Pending<'_, Option<Bytes>>;

    // Provided method
    fn size(&self) -> Option<u64> { ... }
}

Required Methods§

Source

fn chunk(&mut self) -> Pending<'_, Option<Bytes>>

None once the file is read.

Provided Methods§

Source

fn size(&self) -> Option<u64>

In bytes, when the store knows it before the content is read.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§