pub enum LogRollerError {
CreateDirectoryFailed(PathBuf, String),
CreateFileFailed(PathBuf, String),
GetNaiveTimeFailed,
InvalidRotationType(String),
GetNextFilePathError(PathBuf),
RenameFileError {
from: PathBuf,
to: PathBuf,
error: String,
},
FileIOError(Error),
ShouldNotRotate(PathBuf),
InternalError(String),
SetFilePermissionsError {
path: PathBuf,
error: String,
},
}
Expand description
Errors that can occur when using the log roller.
Variants§
CreateDirectoryFailed(PathBuf, String)
CreateFileFailed(PathBuf, String)
GetNaiveTimeFailed
InvalidRotationType(String)
GetNextFilePathError(PathBuf)
RenameFileError
FileIOError(Error)
ShouldNotRotate(PathBuf)
InternalError(String)
SetFilePermissionsError
Trait Implementations§
Source§impl Debug for LogRollerError
impl Debug for LogRollerError
Source§impl Display for LogRollerError
impl Display for LogRollerError
Source§impl Error for LogRollerError
impl Error for LogRollerError
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 LogRollerError
impl !RefUnwindSafe for LogRollerError
impl Send for LogRollerError
impl Sync for LogRollerError
impl Unpin for LogRollerError
impl !UnwindSafe for LogRollerError
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