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
sourceimpl Error for InitError
impl Error for InitError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl From<SetLoggerError> for InitError
impl From<SetLoggerError> for InitError
sourcefn from(error: SetLoggerError) -> InitError
fn from(error: SetLoggerError) -> InitError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl !UnwindSafe for InitError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more