pub enum StreamMode {
Pipe,
Share,
Log(Level),
Discard,
Fd(OwnedFd),
}Expand description
How to handle the standard input/out/error streams
Variants§
Pipe
Collect the stream contents in a Stream object via a
pipe that can be retrieved in the spawn::Handle
Share STDIN/STDOUT/STDERR with the process, such that it can write to the parent. This is the default.
Log(Level)
Send the output to the system logger at the provided level. If the log level is below this, output is discarded.
Discard
Send output to /dev/null.
Fd(OwnedFd)
Send the output to the provided File Descriptor.
Trait Implementations§
Source§impl Default for StreamMode
impl Default for StreamMode
Source§fn default() -> StreamMode
fn default() -> StreamMode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamMode
impl RefUnwindSafe for StreamMode
impl Send for StreamMode
impl Sync for StreamMode
impl Unpin for StreamMode
impl UnwindSafe for StreamMode
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more