Trait nu_plugin_core::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§