#[non_exhaustive]pub enum Error {
FormatRecord(Error),
WriteRecord(Error),
FlushBuffer(Error),
CreateDirectory(Error),
OpenFile(Error),
QueryFileMetadata(Error),
RenameFile(Error),
RemoveFile(Error),
ParseLevel(String),
InvalidArgument(InvalidArgumentError),
SendToChannel(SendToChannelError, SendToChannelErrorDropped),
}
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.
InvalidArgument(InvalidArgumentError)
The variant returned if an invalid argument was passed in.
SendToChannel(SendToChannelError, SendToChannelErrorDropped)
multi-thread
only.The variant returned by Sink
s when an error occurs in sending to the
channel.