pub trait PluginRead<T> {
// Required method
fn read(&mut self) -> Result<Option<T>, ShellError>;
}
Expand description
Read input/output from the stream.
Required Methods§
Sourcefn read(&mut self) -> Result<Option<T>, ShellError>
fn read(&mut self) -> Result<Option<T>, ShellError>
Returns Ok(None)
on end of stream.