pub struct Guard {
kind: GuardKind,
}
Expand description
A guard object used to enforce safe logging, or turn it off.
For as long as this object exists, the chosen behavior will be enforced.
Fields
kind: GuardKind
What kind of guard is this?
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Guard
impl Send for Guard
impl Sync for Guard
impl Unpin for Guard
impl UnwindSafe for Guard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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