pub enum ErrorKind<E = String> {
External(ExternalError<E>),
Sync(SyncError),
}Variants§
External(ExternalError<E>)
Sync(SyncError)
Implementations§
source§impl<E> ErrorKind<E>
impl<E> ErrorKind<E>
sourcepub const fn is_external(&self) -> bool
pub const fn is_external(&self) -> bool
Returns true if the enum is ErrorKind::External otherwise false
Trait Implementations§
source§impl<'de, E> Deserialize<'de> for ErrorKind<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for ErrorKind<E>where
E: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<E> IntoEnumIterator for ErrorKind<E>
impl<E> IntoEnumIterator for ErrorKind<E>
type Iterator = ErrorKindIter<E>
fn iter() -> ErrorKindIter<E> ⓘ
source§impl<E: Ord> Ord for ErrorKind<E>
impl<E: Ord> Ord for ErrorKind<E>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<E: PartialEq> PartialEq for ErrorKind<E>
impl<E: PartialEq> PartialEq for ErrorKind<E>
source§impl<E: PartialOrd> PartialOrd for ErrorKind<E>
impl<E: PartialOrd> PartialOrd for ErrorKind<E>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<E> VariantNames for ErrorKind<E>
impl<E> VariantNames for ErrorKind<E>
impl<E: Copy> Copy for ErrorKind<E>
impl<E: Eq> Eq for ErrorKind<E>
impl<E> StructuralPartialEq for ErrorKind<E>
Auto Trait Implementations§
impl<E> Freeze for ErrorKind<E>where
E: Freeze,
impl<E> RefUnwindSafe for ErrorKind<E>where
E: RefUnwindSafe,
impl<E> Send for ErrorKind<E>where
E: Send,
impl<E> Sync for ErrorKind<E>where
E: Sync,
impl<E> Unpin for ErrorKind<E>where
E: Unpin,
impl<E> UnwindSafe for ErrorKind<E>where
E: 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