pub struct TuiWidgetState {
pub inner: Arc<Mutex<TuiWidgetInnerState>>,
}
Expand description
This struct contains the shared state of a TuiLoggerWidget and a TuiLoggerTargetWidget.
Fields§
§inner: Arc<Mutex<TuiWidgetInnerState>>
Implementations§
Source§impl 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§
Source§impl Default for TuiWidgetState
impl Default for TuiWidgetState
Source§fn default() -> TuiWidgetState
fn default() -> TuiWidgetState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TuiWidgetState
impl !RefUnwindSafe for TuiWidgetState
impl Send for TuiWidgetState
impl Sync for TuiWidgetState
impl Unpin for TuiWidgetState
impl !UnwindSafe for TuiWidgetState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more