axum_range

Trait RangeBody

Source
pub trait RangeBody: AsyncRead + AsyncSeekStart {
    // Required method
    fn byte_size(&self) -> u64;
}
Expand description

An AsyncRead and AsyncSeekStart with a fixed known byte size.

Required Methods§

Source

fn byte_size(&self) -> u64

The total size of the underlying file.

This should not change for the lifetime of the object once queried. Behaviour is not guaranteed if it does change.

Implementors§