Struct tui_logger::LevelConfig

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

LevelConfig stores the relation target->LevelFilter in a hash table.

The table supports copying from the logger system LevelConfig to a widget’s LevelConfig. In order to detect changes, the generation of the hash table is compared with any previous copied table. On every change the generation is incremented.

Implementations§

Create an empty LevelConfig.

Set for a given target the LevelFilter in the table and update the generation.

Retrieve an iter for all the targets stored in the hash table.

Get the levelfilter for a given target.

Retrieve an iterator through all entries of the table.

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.