Enum fern::InitError [−][src]
pub enum InitError { Io(Error), SetLoggerError(SetLoggerError), }
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
impl Debug for InitError
[src]
impl Debug for InitError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for InitError
[src]
impl From<Error> for InitError
impl From<SetLoggerError> for InitError
[src]
impl From<SetLoggerError> for InitError
fn from(error: SetLoggerError) -> InitError
[src]
fn from(error: SetLoggerError) -> InitError
Performs the conversion.
impl Display for InitError
[src]
impl Display for InitError
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for InitError
[src]
impl Error for InitError