pub enum RlgError {
IoError(Error),
ConfigError(ConfigError),
FormatParseError(String),
LevelParseError(String),
UnsupportedFormat(String),
FormattingError(String),
RotationError(String),
NetworkError(String),
DateTimeParseError(String),
Custom(String),
}
Expand description
Errors that can occur during the logging process
Variants§
IoError(Error)
I/O error
ConfigError(ConfigError)
Configuration error
FormatParseError(String)
Log format parse error
LevelParseError(String)
Log level parse error
UnsupportedFormat(String)
Unsupported log format
FormattingError(String)
Log formatting error
RotationError(String)
Log rotation error
NetworkError(String)
Network error
DateTimeParseError(String)
DateTime parse error
Custom(String)
Custom error
Implementations§
Trait Implementations§
Source§impl Error for RlgError
impl Error for RlgError
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 From<ConfigError> for RlgError
impl From<ConfigError> for RlgError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RlgError
impl !RefUnwindSafe for RlgError
impl Send for RlgError
impl Sync for RlgError
impl Unpin for RlgError
impl !UnwindSafe for RlgError
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