pub enum Error {
Tauri(Error),
Io(Error),
TimeFormat(Format),
InvalidFormatDescription(InvalidFormatDescription),
LoggerNotInitialized,
SetGlobalDefault(SetGlobalDefaultError),
NotImplemented,
LockPoisoned(String),
}Expand description
Errors that can occur when using the tracing plugin.
Variants§
Tauri(Error)
An error from the Tauri runtime.
Io(Error)
An I/O error, typically from file operations.
TimeFormat(Format)
An error formatting a timestamp.
InvalidFormatDescription(InvalidFormatDescription)
An invalid time format description was provided.
LoggerNotInitialized
The internal logger was not initialized.
SetGlobalDefault(SetGlobalDefaultError)
Failed to set the global default subscriber.
NotImplemented
The requested feature is not yet implemented.
LockPoisoned(String)
A mutex lock was poisoned (another thread panicked while holding the lock).
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()
Source§impl From<InvalidFormatDescription> for Error
impl From<InvalidFormatDescription> for Error
Source§fn from(source: InvalidFormatDescription) -> Self
fn from(source: InvalidFormatDescription) -> Self
Converts to this type from the input type.
Source§impl From<SetGlobalDefaultError> for Error
impl From<SetGlobalDefaultError> for Error
Source§fn from(source: SetGlobalDefaultError) -> Self
fn from(source: SetGlobalDefaultError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe 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