Struct tui_logger::LevelConfig [−][src]
pub struct LevelConfig { /* fields omitted */ }
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.
Trait Implementations
Returns the “default value” for a type. Read more