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

Helper: Create a guard of a given kind.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.