#[non_exhaustive]pub enum Input {
Null,
Bytes(Vec<u8>),
Inherit,
}Expand description
What the child reads on its standard input.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
The null device, so the child reads the end of its input at once.
Bytes(Vec<u8>)
These bytes, which a thread of the run writes and then closes. The thread stops early when the child closes its input.
Inherit
The tool’s own standard input. On Unix a child in a group of its own
that reads a terminal is stopped by SIGTTIN, so a terminal suits
only Scope::Child.
Trait Implementations§
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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