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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)