pub enum LoggerSetupError {
EmptyLogFileName,
MissingFileName(String),
PathIsADirectory(String),
ParentDirDoesNotExist(String),
ParentIsNotADirectory(String),
CouldNotOpenOutputFile {
source: Error,
},
}Expand description
Contains the error definition for the logger setup.
Variants§
EmptyLogFileName
The configured log file name is empty.
MissingFileName(String)
Log file configuration has no file name component.
PathIsADirectory(String)
The configured log file path is an existing directory.
ParentDirDoesNotExist(String)
Log file configuration contains a non-existing folder.
ParentIsNotADirectory(String)
Log file configuration contains a folder, which is not a directory.
CouldNotOpenOutputFile
Could not open the output file for logging.
Trait Implementations§
Source§impl Debug for LoggerSetupError
impl Debug for LoggerSetupError
Source§impl Display for LoggerSetupError
impl Display for LoggerSetupError
Source§impl Error for LoggerSetupError
impl Error for LoggerSetupError
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()
Auto Trait Implementations§
impl Freeze for LoggerSetupError
impl !RefUnwindSafe for LoggerSetupError
impl Send for LoggerSetupError
impl Sync for LoggerSetupError
impl Unpin for LoggerSetupError
impl !UnwindSafe for LoggerSetupError
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