pub enum Stream {
StandardError,
StandardOutput,
}Expand description
The stream of a command that produced a line of output
A command writes its result to one stream and its diagnostics to another, and a reader of the output has to know which of the two it reads. A line carries this value, so that a caller can show a diagnostic apart from a result, or drop one of the two.
A command has these two output streams and no other, so a match on the value needs no arm for a stream that a later release adds.
§Examples
use kawauso_process::run::Stream;
assert_eq!(Stream::StandardError.to_string(), "standard error");Variants§
StandardError
The stream on which a command states why it stopped
StandardOutput
The stream on which a command writes its result
Trait Implementations§
impl Copy for Stream
Source§impl Display for Stream
Names the stream for a reader
impl Display for Stream
Names the stream for a reader
The name is the one that the documentation of an operating system uses, so that a log line names the stream that a reader looks for.
impl Eq for Stream
Source§impl Ord for Stream
impl Ord for Stream
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Stream
impl PartialOrd for Stream
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more