pub struct DisableStdoutLogger;Expand description
A struct to automate enabling and disabling of the stdout/stderr logger.
When a new instance of this struct is created, the stdout/stderr logger is automatically disabled if not already. Inversely, when all instances of this struct are dropped, the stdout/stderr logger is re-enabled.
Implementations§
Source§impl DisableStdoutLogger
impl DisableStdoutLogger
Sourcepub fn new() -> DisableStdoutLogger
pub fn new() -> DisableStdoutLogger
Temporarily disables stdout/stderr logging for the lifespan of this struct.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DisableStdoutLogger
impl RefUnwindSafe for DisableStdoutLogger
impl Send for DisableStdoutLogger
impl Sync for DisableStdoutLogger
impl Unpin for DisableStdoutLogger
impl UnwindSafe for DisableStdoutLogger
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