pub trait BytesSource:
Read
+ Seek
+ Send { }Expand description
A seekable byte stream (Read + Seek + Send). Replaces the historical
Box<dyn ReadSeek> opener-return type with a name that mirrors the
other source-shape traits in this module. Blanket-implemented for
every type that satisfies the bounds, so existing readers (files,
Cursor<Vec<u8>>, HTTP-over-Range adapters) work unchanged.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".