pub enum Stdio {
Pipe,
Inherit,
Null,
Fd(Closing),
}Expand description
An enumeration that is used to configure stdio file descritors
The enumeration members might be non-stable, it’s better to use one of the constructors to create an instance
Variants§
Pipe
This fd will use pipe to/from the appliation
Inherit
This fd will be inherited from the parent application
Null
This fd will open /dev/null in read or write mode
Fd(Closing)
This is fd passed by application (and closed by unshare)
Implementations§
Source§impl Stdio
impl Stdio
Sourcepub fn to_fd(self, write: bool) -> Fd
pub fn to_fd(self, write: bool) -> Fd
Converts stdio definition to file descriptor definition (mostly needed internally)
Auto Trait Implementations§
impl Freeze for Stdio
impl RefUnwindSafe for Stdio
impl Send for Stdio
impl Sync for Stdio
impl Unpin for Stdio
impl UnwindSafe for Stdio
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