pub enum CommandStdin {
Null,
Inherit,
Stream(SharedInput),
OsPipe(OsPipeReader),
}Variants§
Null
Isolated null stdin. Preserves the previous None behavior.
Inherit
Stream(SharedInput)
OsPipe(OsPipeReader)
Direct OS kernel pipe reader for concurrent pipelines. See
CommandStdout::OsPipe for the single use contract.
Implementations§
Source§impl CommandStdin
impl CommandStdin
Sourcepub fn is_redirected(&self) -> bool
pub fn is_redirected(&self) -> bool
Whether stdin is bound to a virtual pipe (WITH_IO [stdin=...]).
A redirected stdin can never answer an interactive prompt, so
terminal-facing steps treat this as non-interactive even when
the host process itself owns a TTY.
Trait Implementations§
Source§impl Clone for CommandStdin
impl Clone for CommandStdin
Source§impl Default for CommandStdin
impl Default for CommandStdin
Auto Trait Implementations§
impl Forget for CommandStdin
impl Freeze for CommandStdin
impl RefUnwindSafe for CommandStdin
impl Send for CommandStdin
impl Sync for CommandStdin
impl Unpin for CommandStdin
impl UnsafeUnpin for CommandStdin
impl UnwindSafe for CommandStdin
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