Struct logid::id_map::LogIdMap

source ·
pub struct LogIdMap { /* private fields */ }
Expand description

Map to capture LogIds, and combine all informations set for a LogId inside a LogIdEntry.

Implementations

Create a new LogIdMap.

Returns the last LogId that was entered in the map, and got marked as drainable.

Drain this LogIdMap. Returning all drainable entries of all captured LogIds of the map so far.

Returns all captured entries marked as drainable for the given LogId.

Arguments
  • id - the LogId used to search for map entries

Returns all captured entries for the given LogId. Entries must not be marked as drainable. Therefore, not all information might have been captured for an entry.

Arguments
  • id - the LogId used to search for map entries

Drains all captured entries marked as drainable for the given LogId. Non-drainable entries remain in the map.

Arguments
  • id - the LogId used to search for map entries

Trait Implementations

Returns the “default value” for a 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more