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]

[src]

Create an empty LevelConfig.

[src]

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

[src]

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

[src]

Get the levelfilter for a given target.

[src]

Retrieve an iterator through all entries of the table.

Trait Implementations

Auto Trait Implementations

impl Send for LevelConfig

impl Sync for LevelConfig