PluginRead

Trait PluginRead 

Source
pub trait PluginRead<T> {
    // Required method
    fn read(&mut self) -> Result<Option<T>, ShellError>;
}
Expand description

Read input/output from the stream.

Required Methods§

Source

fn read(&mut self) -> Result<Option<T>, ShellError>

Returns Ok(None) on end of stream.

Implementations on Foreign Types§

Source§

impl<R, E, T> PluginRead<T> for (R, E)
where R: BufRead, E: Encoder<T>,

Source§

fn read(&mut self) -> Result<Option<T>, ShellError>

Source§

impl<R, T> PluginRead<T> for &mut R
where R: PluginRead<T>,

Source§

fn read(&mut self) -> Result<Option<T>, ShellError>

Implementors§