[−][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.
Implementations
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 RefUnwindSafe for LevelConfig
impl Send for LevelConfig
impl Sync for LevelConfig
impl Unpin for LevelConfig
impl UnwindSafe for LevelConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,