pub enum LogType {
Show 13 variants
Info,
Warning,
Error,
Debug,
Timestamp,
System,
UserAction,
Config,
Status,
Progress,
Success,
Default,
Custom(String),
}Expand description
LogType
This enum is used to categorize the type of log entry in the terminal widget. This is used to color code the log entries.
Standard log levels (INFO, WARNING, ERROR, DEBUG) are provided along with additional generic types for various use cases.
The Custom variant accepts a String parameter, allowing for extensible custom log types with arbitrary identifiers.
Variants§
Info
Standard info level messages
Warning
Warning messages
Error
Error messages
Debug
Debug messages
Timestamp
For timestamps or time-related information
System
For system events
UserAction
For user interactions
Config
For configuration changes
Status
For general status updates
Progress
For progress indicators
Success
For success messages
Default
For neutral/default messages
Custom(String)
For custom types with a specific identifier string
Trait Implementations§
Source§impl Debug for LogType
Debug for LogType
impl Debug for LogType
Debug for LogType
This is used to display the LogType in the terminal widget
impl StructuralPartialEq for LogType
Auto Trait Implementations§
impl Freeze for LogType
impl RefUnwindSafe for LogType
impl Send for LogType
impl Sync for LogType
impl Unpin for LogType
impl UnwindSafe for LogType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.