pub trait SeekSource: Source { }Expand description
A Source that can seek (its seek_to_bit is real, not
the failing default). A #[bin] message that uses restore_position bounds its
generated decode on this trait, so a forward-only stream is rejected at
compile time. Implemented by BitReader, BufSource, and SeekReader
(and, with the bytes feature, BytesReader).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SeekSource for BitBuf
impl SeekSource for BitReader<'_>
impl SeekSource for BytesReader
Available on crate feature
bytes only.impl<R: Read + Seek> SeekSource for SeekReader<R>
Available on crate feature
std only.impl<R: Read> SeekSource for BufSource<R>
Available on crate feature
std only.