Enum atrium_xrpc::error::XrpcErrorKind
source · pub enum XrpcErrorKind<E> {
Custom(E),
Undefined(ErrorResponseBody),
}
Expand description
An enum of possible XRPC error kinds.
Error defined in Lexicon schema or other standard error.
Variants§
Custom(E)
Undefined(ErrorResponseBody)
Trait Implementations§
source§impl<E: Clone> Clone for XrpcErrorKind<E>
impl<E: Clone> Clone for XrpcErrorKind<E>
source§fn clone(&self) -> XrpcErrorKind<E>
fn clone(&self) -> XrpcErrorKind<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug> Debug for XrpcErrorKind<E>
impl<E: Debug> Debug for XrpcErrorKind<E>
source§impl<'de, E> Deserialize<'de> for XrpcErrorKind<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for XrpcErrorKind<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: PartialEq> PartialEq for XrpcErrorKind<E>
impl<E: PartialEq> PartialEq for XrpcErrorKind<E>
source§fn eq(&self, other: &XrpcErrorKind<E>) -> bool
fn eq(&self, other: &XrpcErrorKind<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<E> Serialize for XrpcErrorKind<E>where
E: Serialize,
impl<E> Serialize for XrpcErrorKind<E>where
E: Serialize,
impl<E: Eq> Eq for XrpcErrorKind<E>
impl<E> StructuralPartialEq for XrpcErrorKind<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for XrpcErrorKind<E>where
E: RefUnwindSafe,
impl<E> Send for XrpcErrorKind<E>where
E: Send,
impl<E> Sync for XrpcErrorKind<E>where
E: Sync,
impl<E> Unpin for XrpcErrorKind<E>where
E: Unpin,
impl<E> UnwindSafe for XrpcErrorKind<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