Search results

There are no results.

std.sys.Stream

class pub enum Stream

A 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 code
Hide source code
fn pub to_int -> Int {
  match self {
    case Null -> 0
    case Inherit -> 1
    case Piped -> 2
  }
}
fn pub to_int -> Int

Converts self into it's numerical equivalent.

Implemented traits

std.int.

ToInt

impl ToInt for Stream