pub struct LoggerState {
pub init: bool,
pub should_copy_relevant: bool,
pub should_output_json: bool,
pub level: LogLevel,
}
Expand description
Simple state of the logger
Fields§
§init: bool
Whether the logger is already initialized
should_copy_relevant: bool
Whether the output that is being logged should also be copied
This is explicitly called with the copy!
macro.
Relevant here means the invitation url, connection id, etc.
should_output_json: bool
Whether the output should be logged as json
level: LogLevel
The loglevel at the cli
Implementations§
Trait Implementations§
Source§impl Debug for LoggerState
impl Debug for LoggerState
Source§impl Default for LoggerState
impl Default for LoggerState
Source§fn default() -> LoggerState
fn default() -> LoggerState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoggerState
impl RefUnwindSafe for LoggerState
impl Send for LoggerState
impl Sync for LoggerState
impl Unpin for LoggerState
impl UnwindSafe for LoggerState
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> 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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.