pub enum Error {
Tauri(Error),
Io(Error),
TimeFormat(Format),
InvalidFormatDescription(InvalidFormatDescription),
LoggerNotInitialized,
}Expand description
The error type returned by this plugin’s fallible operations.
Variants§
Tauri(Error)
Forwarded from a call into the Tauri API, e.g. resolving the app log directory.
Io(Error)
Forwarded from a filesystem operation performed while creating, writing to or rotating a log file.
TimeFormat(Format)
Forwarded from formatting a timestamp with the configured TimezoneStrategy.
InvalidFormatDescription(InvalidFormatDescription)
Forwarded from parsing an invalid time format description.
LoggerNotInitialized
Returned by Builder::split when Builder::skip_logger was called on the builder, since no logger was
created for it to return.
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.
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