#[non_exhaustive]
pub enum Error {
FormatRecord(Error),
WriteRecord(Error),
FlushBuffer(Error),
CreateDirectory(Error),
OpenFile(Error),
QueryFileMetadata(Error),
RenameFile(Error),
RemoveFile(Error),
ParseLevel(String),
}
Expand description
The error type of this crate.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
FormatRecord(Error)
The variant returned by Formatter
s when an error occurs in
formatting a record.
WriteRecord(Error)
The variant returned by Sink
s when an error occurs in writing a
record to the target.
FlushBuffer(Error)
The variant returned by Sink
s when an error occurs in flushing the
buffer.
CreateDirectory(Error)
The variant returned by Sink
s when an error occurs in creating a
directory.
OpenFile(Error)
The variant returned by Sink
s when an error occurs in opening a
file.
QueryFileMetadata(Error)
The variant returned by Sink
s when an error occurs in querying the
metadata of a file.
RenameFile(Error)
The variant returned by Sink
s when an error occurs in renaming a
file.
RemoveFile(Error)
The variant returned by Sink
s when an error occurs in removing a
file.
ParseLevel(String)
The variant returned by from_str
when the string doesn’t match any
of the log levels.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more