pub enum Stdin {
Setup(Pipe),
Inherit,
Null,
File(PathBuf),
Pipe,
}Available on crate feature
default only.Expand description
This is a special Stdio for the stdin method of Command
Contains all the standard Stdio options and the Stdin::Setup option
Variants§
Setup(Pipe)
Using this in Command::stdin pipes the stream specified with Pipe of the setup
function into the Stdin of the Command. In this case the setup and Command are
executed in parallel instead of sequentially. See Command::stdin for more details.
Inherit
See Stdio::Inherit
Null
See Stdio::Null
File(PathBuf)
See Stdio::File
Pipe
See Stdio::Pipe
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stdin
impl<'de> Deserialize<'de> for Stdin
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Stdin, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Stdin, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Stdin
impl Serialize for Stdin
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 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