pub enum ChildInput {
Empty,
Piped(PipedInput),
}Expand description
What the child sees on stdin.
Variants§
Empty
An immediately closed pipe. A child that reads gets EOF.
Piped(PipedInput)
An anonymous pipe carrying these bytes, then closed.
Implementations§
Source§impl ChildInput
impl ChildInput
Sourcepub fn piped(&self) -> Option<&PipedInput>
pub fn piped(&self) -> Option<&PipedInput>
The payload, when there is one.
Trait Implementations§
Source§impl Debug for ChildInput
impl Debug for ChildInput
Source§impl Default for ChildInput
impl Default for ChildInput
Source§fn default() -> ChildInput
fn default() -> ChildInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChildInput
impl RefUnwindSafe for ChildInput
impl Send for ChildInput
impl Sync for ChildInput
impl Unpin for ChildInput
impl UnsafeUnpin for ChildInput
impl UnwindSafe for ChildInput
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