Enum memfd_exec::Stdio
source · [−]pub enum Stdio {
Inherit,
Null,
MakePipe,
Fd(FileDesc),
}Variants
Inherit
Null
MakePipe
Fd(FileDesc)
Implementations
sourceimpl Stdio
impl Stdio
pub fn to_child_stdio(
&self,
readable: bool
) -> Result<(ChildStdio, Option<AnonPipe>)>
sourcepub fn piped() -> Stdio
pub fn piped() -> Stdio
Create a pipe for this file descriptor and use it in the child process as
the given file descriptor to facilitate input or output redirection. See
MemFdExecutable::stdin for an example.
Auto Trait Implementations
impl RefUnwindSafe for Stdio
impl Send for Stdio
impl Sync for Stdio
impl Unpin for Stdio
impl UnwindSafe for Stdio
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more