pub enum Error {
LogDir {
path: PathBuf,
source: Error,
},
Appender {
path: PathBuf,
source: InitError,
},
Filter {
directive: String,
message: String,
},
AlreadyInitialized,
Io(Error),
Manifest(Error),
Bundle(ZipError),
}Expand description
Everything that can go wrong initializing logging or running a logs verb.
Variants§
LogDir
The resolved log directory could not be created or written.
Fields
Appender
The rolling file appender could not be built for the resolved directory.
Fields
Filter
A level-filter directive (default, env, persisted, or a runtime reload) was not valid.
AlreadyInitialized
A global subscriber was already installed (init called twice, or another crate set one).
Io(Error)
A logs verb hit a plain I/O error (reading a log file, writing a bundle).
Manifest(Error)
Serializing a bundle manifest failed.
Bundle(ZipError)
Writing the bundle zip archive failed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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