pub enum AsapError<T: Display + Debug> {
ItemNotFound(T),
ItemAlreadyExists(T),
InvalidComparison,
NotEnoughComparisons,
InternalError(String),
SerializationError(String),
}Expand description
Error types for ASAP operations
Variants§
ItemNotFound(T)
ItemAlreadyExists(T)
InvalidComparison
NotEnoughComparisons
InternalError(String)
SerializationError(String)
Trait Implementations§
Source§impl<T: Display + Debug> Error for AsapError<T>
impl<T: Display + Debug> Error for AsapError<T>
1.30.0 · 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<T> Freeze for AsapError<T>where
T: Freeze,
impl<T> RefUnwindSafe for AsapError<T>where
T: RefUnwindSafe,
impl<T> Send for AsapError<T>where
T: Send,
impl<T> Sync for AsapError<T>where
T: Sync,
impl<T> Unpin for AsapError<T>where
T: Unpin,
impl<T> UnsafeUnpin for AsapError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AsapError<T>where
T: UnwindSafe,
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