Trait ReadSourceOpen

Source
pub trait ReadSourceOpen {
    type Reader: Read + Send + 'static;

    // Required method
    fn open(self) -> RusticResult<Self::Reader>;
}
Expand description

Trait for backends that can read and open sources. This trait is implemented by all backends that can read data and open from a source.

Required Associated Types§

Source

type Reader: Read + Send + 'static

The Reader used for this source

Required Methods§

Source

fn open(self) -> RusticResult<Self::Reader>

Opens the source.

§Errors
  • If the source could not be opened.
§Result

The reader used to read from the source.

Implementors§

Source§

impl ReadSourceOpen for OpenFile

Source§

impl<T: Read + Send + 'static> ReadSourceOpen for T

blanket implementation for readers