Skip to main content

Source

Trait Source 

Source
pub trait Source: Read + Send {
    // Required methods
    fn caps(&self) -> SourceCaps;
    fn as_seek(&mut self) -> Option<&mut dyn SeekRead>;
}
Expand description

An input stream that reports its own capabilities.

Required Methods§

Source

fn caps(&self) -> SourceCaps

Source

fn as_seek(&mut self) -> Option<&mut dyn SeekRead>

Returns a seekable view, or None if this source cannot seek.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§