Struct tui_logger::LevelConfig
[−]
[src]
pub struct LevelConfig { /* fields omitted */ }
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.
Methods
impl LevelConfig
[src]
pub fn new() -> LevelConfig
[src]
Create an empty LevelConfig.
pub fn set(&mut self, target: &str, level: LevelFilter)
[src]
Set for a given target the LevelFilter in the table and update the generation.
pub fn keys(&self) -> Keys<String, LevelFilter>
[src]
Retrieve an iter for all the targets stored in the hash table.
pub fn get(&self, target: &str) -> Option<&LevelFilter>
[src]
Get the levelfilter for a given target.
pub fn iter(&self) -> Iter<String, LevelFilter>
[src]
Retrieve an iterator through all entries of the table.