pub struct LoggerOptions { /* private fields */ }Expand description
Logger configuration.
Implementations§
Source§impl LoggerOptions
impl LoggerOptions
pub fn new(level: LogLevel) -> LoggerOptions
pub fn disabled(self, disabled: bool) -> LoggerOptions
pub fn with_handler( self, handler: impl Fn(LogLevel, &str, &[&str]) + Send + Sync + 'static, ) -> LoggerOptions
Trait Implementations§
Source§impl Clone for LoggerOptions
impl Clone for LoggerOptions
Source§fn clone(&self) -> LoggerOptions
fn clone(&self) -> LoggerOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for LoggerOptions
impl Default for LoggerOptions
Source§fn default() -> LoggerOptions
fn default() -> LoggerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for LoggerOptions
impl !UnwindSafe for LoggerOptions
impl Freeze for LoggerOptions
impl Send for LoggerOptions
impl Sync for LoggerOptions
impl Unpin for LoggerOptions
impl UnsafeUnpin for LoggerOptions
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