pub struct LogCx<'a> { /* private fields */ }
Expand description

Logging context

This encapsulates a stakker::LogID and a reference to stakker::Core. It allows logging to a particular context or span without having to carry around a reference to a particular actor. A reference to a LogCx can be used as the [cx] argument to any of the logging macros.

Implementations

Create directly from LogID and Core reference

Used by macros to obtain the LogID

Used by macros to obtain the Core reference

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.