pub enum Stdin {
Closed,
Piped,
}Expand description
What the child’s stdin is connected to.
Most CLIs get everything as arguments and want Closed: a
child that inherits a terminal’s stdin can block forever waiting for input
nobody is typing. A child that answers — a JSON-RPC server over stdio —
needs Piped and ProcessHandle::write_line.
Variants§
Trait Implementations§
impl Copy for Stdin
impl Eq for Stdin
impl StructuralPartialEq for Stdin
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