Skip to main content

SeekableReader

Trait SeekableReader 

Source
pub trait SeekableReader:
    AsyncRead
    + AsyncSeek
    + Send
    + Unpin { }
Expand description

An async reader that can also seek.

Seeking is what lets a stream answer Range requests, so a FileSource::SeekableStream needs both capabilities. Implemented automatically for anything that is AsyncRead + AsyncSeek + Send + Unpin, so you never implement it yourself.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§