Struct tui_logger::TuiWidgetState
source · [−]pub struct TuiWidgetState { /* private fields */ }
Expand description
This struct contains the shared state of a TuiLoggerWidget and a TuiLoggerTargetWidget.
Implementations
sourceimpl TuiWidgetState
impl TuiWidgetState
sourcepub fn new() -> TuiWidgetState
pub fn new() -> TuiWidgetState
Create a new TuiWidgetState
pub fn set_default_display_level(
self,
levelfilter: LevelFilter
) -> TuiWidgetState
pub fn set_level_for_target(
self,
target: &str,
levelfilter: LevelFilter
) -> TuiWidgetState
pub fn transition(&mut self, event: &TuiWidgetEvent)
Trait Implementations
sourceimpl Default for TuiWidgetState
impl Default for TuiWidgetState
sourcefn default() -> TuiWidgetState
fn default() -> TuiWidgetState
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TuiWidgetState
impl Send for TuiWidgetState
impl Sync for TuiWidgetState
impl Unpin for TuiWidgetState
impl !UnwindSafe for TuiWidgetState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more