std.sys.Stream
class pub enum StreamA type that describes what to do with an input/output stream of a command.
Constructors
Null
Null()A stream that should be redirected to the null device.
Inherit
Inherit()The stream inherits from the parent process.
Piped
Piped()The stream is piped to a separate buffer.
Instance methods
to_int
Show source codeHide source code
fn pub to_int -> Int {
match self {
case Null -> 0
case Inherit -> 1
case Piped -> 2
}
}fn pub to_int -> IntConverts self into it's numerical equivalent.
Implemented traits
ToInt
impl ToInt for Stream