[−][src]Struct tui_logger::LevelConfig
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.
Auto Trait Implementations
impl Send for LevelConfig
impl Sync for LevelConfig
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,