struct Silenced {
stdout: OwnedFd,
stderr: OwnedFd,
}Expand description
Both standard streams pointed at /dev/null, with the originals
restored when the value is dropped.
A blunt instrument on purpose: it catches every print in the capture
path, including ones added later, which auditing call sites would not.
Restoring on the way out is what keeps the one message Wireshark’s
error dialog is good for — the fatal error main reports — from being
silenced along with the narration.
Fields§
§stdout: OwnedFd§stderr: OwnedFdImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Silenced
impl RefUnwindSafe for Silenced
impl Send for Silenced
impl Sync for Silenced
impl Unpin for Silenced
impl UnwindSafe for Silenced
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more