pub enum Stdin {
Null,
Bytes(Vec<u8>),
Inherit,
Piped,
}Expand description
Where the command’s stdin comes from.
Variants§
Null
Closed immediately (like /dev/null).
Bytes(Vec<u8>)
These bytes, then EOF.
Inherit
This process’s own stdin (fd 0), until EOF or until the command exits.
Piped
Written through ExecStream::write_stdin, ended by
ExecStream::close_stdin.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stdin
impl RefUnwindSafe for Stdin
impl Send for Stdin
impl Sync for Stdin
impl Unpin for Stdin
impl UnsafeUnpin for Stdin
impl UnwindSafe for Stdin
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