pub enum Error<IE>where
IE: Error + 'static,{
LoadMeta {
source: IE,
},
SaveMeta {
source: IE,
},
SavePatch {
source: IE,
patch: PatchRef,
},
PatchNotFound {
source: IE,
patch: PatchRef,
},
PatchAlreadyLoaded {
patch: PatchRef,
},
MissingParentPatches {
patch: PatchRef,
parents: Vec<PatchRef>,
},
PatchingTimesheet {
conflicts: Vec<Error>,
patch: PatchRef,
},
IOError {
source: IE,
},
}Variants§
LoadMeta
Fields
§
source: IESaveMeta
Fields
§
source: IESavePatch
PatchNotFound
PatchAlreadyLoaded
MissingParentPatches
PatchingTimesheet
IOError
Fields
§
source: IETrait Implementations§
Source§impl<IE> Error for Error<IE>
impl<IE> Error for Error<IE>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<IE> ErrorCompat for Error<IE>where
IE: Error + 'static,
impl<IE> ErrorCompat for Error<IE>where
IE: Error + 'static,
impl<IE> Eq for Error<IE>
impl<IE> StructuralPartialEq for Error<IE>where
IE: Error + 'static,
Auto Trait Implementations§
impl<IE> Freeze for Error<IE>where
IE: Freeze,
impl<IE> RefUnwindSafe for Error<IE>where
IE: RefUnwindSafe,
impl<IE> Send for Error<IE>where
IE: Send,
impl<IE> Sync for Error<IE>where
IE: Sync,
impl<IE> Unpin for Error<IE>where
IE: Unpin,
impl<IE> UnwindSafe for Error<IE>where
IE: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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