pub enum Error {
Show 16 variants
Argument(String),
Assertion(String),
Concurrency(String),
Data(String),
External(String),
Format(String),
Implementation(String),
Initialization(String),
Internal(String),
Interruption(String),
Operation(String),
Rejection(String),
State(String),
Timeout(String),
Unknown(String),
Version(String),
}
Expand description
Error is an enumeration of different error types
Variants§
Argument(String)
Argument error
Assertion(String)
Assertion error
Concurrency(String)
Concurrency error
Data(String)
Data error
External(String)
External error
Format(String)
Format error
Implementation(String)
Implementation error
Initialization(String)
Initialization error
Internal(String)
Internal error
Interruption(String)
Interruption error
Operation(String)
Operation error
Rejection(String)
Rejection error
State(String)
State error
Timeout(String)
Timeout error
Unknown(String)
Unknown error
Version(String)
Version error
Implementations§
Trait Implementations§
Source§impl Ord for Error
impl Ord for Error
Source§impl PartialOrd for Error
impl PartialOrd for Error
impl Eq for Error
impl StructuralPartialEq for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more