Skip to main content

BytesSource

Trait BytesSource 

Source
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.

Implementors§

Source§

impl<T: Read + Seek + Send> BytesSource for T