pub struct Fds {
pub stdout: FdTarget,
pub stderr: FdTarget,
}Expand description
Where stdout and stderr of the hooked command point.
Fields§
§stdout: FdTargetFile descriptor 1.
stderr: FdTargetFile descriptor 2.
Implementations§
Source§impl Fds
impl Fds
Sourcepub fn from_process() -> Result<Self>
pub fn from_process() -> Result<Self>
Inspect this process’s own file descriptors 1 and 2.
Sourcepub fn stdout_is_null(&self) -> bool
pub fn stdout_is_null(&self) -> bool
True when stdout goes to /dev/null.
Sourcepub fn stderr_is_null(&self) -> bool
pub fn stderr_is_null(&self) -> bool
True when stderr goes to /dev/null.
Trait Implementations§
impl Copy for Fds
impl Eq for Fds
impl StructuralPartialEq for Fds
Auto Trait Implementations§
impl Freeze for Fds
impl RefUnwindSafe for Fds
impl Send for Fds
impl Sync for Fds
impl Unpin for Fds
impl UnsafeUnpin for Fds
impl UnwindSafe for Fds
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.