pub enum Error {
Custom(BoxedErr),
WrongGeneration(WrongGeneration),
// some variants omitted
}
Expand description
The Specs error type. This is an enum which is able to represent all error types of this library.
Please note that you should not use __NonExhaustive
,
which is a variant specifically added for extensibility
without breakage.
Variants
Custom(BoxedErr)
A custom, boxed error.
WrongGeneration(WrongGeneration)
Wrong generation error.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<WrongGeneration> for Error
impl From<WrongGeneration> for Error
sourcefn from(e: WrongGeneration) -> Self
fn from(e: WrongGeneration) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more