pub struct LogGuard(/* private fields */);Expand description
Keeps the tee installed. The previous sink is restored when the last guard is dropped, if the tee is still the current sink.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogGuard
impl RefUnwindSafe for LogGuard
impl Send for LogGuard
impl Sync for LogGuard
impl Unpin for LogGuard
impl UnsafeUnpin for LogGuard
impl UnwindSafe for LogGuard
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more