pub struct SetLoggerError;Expand description
Error returned when attempting to set the logger more than once.
The global logger can only be set once. This error is returned
if set_logger() is called after a logger has already been set.
Trait Implementations§
Source§impl Clone for SetLoggerError
impl Clone for SetLoggerError
Source§fn clone(&self) -> SetLoggerError
fn clone(&self) -> SetLoggerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetLoggerError
impl Debug for SetLoggerError
Source§impl Display for SetLoggerError
impl Display for SetLoggerError
Source§impl Error for SetLoggerError
impl Error for SetLoggerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SetLoggerError
impl PartialEq for SetLoggerError
impl Copy for SetLoggerError
impl Eq for SetLoggerError
impl StructuralPartialEq for SetLoggerError
Auto Trait Implementations§
impl Freeze for SetLoggerError
impl RefUnwindSafe for SetLoggerError
impl Send for SetLoggerError
impl Sync for SetLoggerError
impl Unpin for SetLoggerError
impl UnsafeUnpin for SetLoggerError
impl UnwindSafe for SetLoggerError
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