pub enum InitError {
Io(Error),
SetLoggerError(SetLoggerError),
}
Expand description
Convenience error combining possible errors which could occur while initializing logging.
Fern does not use this error natively, but functions which set up fern and
open log files will often need to return both io::Error
and
SetLoggerError
. This error is for that purpose.
Variants§
Io(Error)
IO error.
SetLoggerError(SetLoggerError)
The log crate’s global logger was already initialized when trying to initialize a logger.
Trait Implementations§
Source§impl Error for InitError
impl Error for InitError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<SetLoggerError> for InitError
impl From<SetLoggerError> for InitError
Source§fn from(error: SetLoggerError) -> InitError
fn from(error: SetLoggerError) -> InitError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InitError
impl !RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl !UnwindSafe for InitError
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