#[non_exhaustive]pub enum InputPolicy {
Closed,
Bytes(Vec<u8>),
Inherit,
}Expand description
Standard input policy.
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.
Closed
Close stdin for the child process.
Bytes(Vec<u8>)
Pipe predefined bytes to stdin, then close it.
Inherit
Inherit stdin from the parent process.
Trait Implementations§
Source§impl Clone for InputPolicy
impl Clone for InputPolicy
Source§fn clone(&self) -> InputPolicy
fn clone(&self) -> InputPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputPolicy
impl Debug for InputPolicy
Source§impl Default for InputPolicy
impl Default for InputPolicy
Source§fn default() -> InputPolicy
fn default() -> InputPolicy
Returns the “default value” for a type. Read more
impl Eq for InputPolicy
Source§impl PartialEq for InputPolicy
impl PartialEq for InputPolicy
impl StructuralPartialEq for InputPolicy
Auto Trait Implementations§
impl Freeze for InputPolicy
impl RefUnwindSafe for InputPolicy
impl Send for InputPolicy
impl Sync for InputPolicy
impl Unpin for InputPolicy
impl UnsafeUnpin for InputPolicy
impl UnwindSafe for InputPolicy
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