#[non_exhaustive]pub enum ErasedCallError {
Erasure(ErasureError),
Rejected(Box<DomainRejection>),
InvalidSpec(InteractionSpecError),
}Expand description
A domain call through the erased boundary failed either because of the boundary itself or because the domain rejected it.
The wire form is adjacently tagged ({"kind": ..., "detail": ...}): several
variants wrap another tagged error, and an internal tag would write two
kind keys into one object, so the outer variant was lost on the way back.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Erasure(ErasureError)
The (de)serialization boundary failed.
Rejected(Box<DomainRejection>)
The domain rejected the call.
Boxed because this variant travels in the Err half of every erased
compile and validate call, and a rejection carrying its own copy is much
larger than the success it displaces.
InvalidSpec(InteractionSpecError)
The domain built a card that cannot be answered.
Trait Implementations§
Source§impl Clone for ErasedCallError
impl Clone for ErasedCallError
Source§impl Debug for ErasedCallError
impl Debug for ErasedCallError
Source§impl<'de> Deserialize<'de> for ErasedCallError
impl<'de> Deserialize<'de> for ErasedCallError
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 Display for ErasedCallError
impl Display for ErasedCallError
impl Eq for ErasedCallError
Source§impl Error for ErasedCallError
impl Error for ErasedCallError
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()
Source§impl From<DomainRejection> for ErasedCallError
impl From<DomainRejection> for ErasedCallError
Source§fn from(value: DomainRejection) -> Self
fn from(value: DomainRejection) -> Self
Converts to this type from the input type.
Source§impl From<ErasureError> for ErasedCallError
impl From<ErasureError> for ErasedCallError
Source§fn from(value: ErasureError) -> Self
fn from(value: ErasureError) -> Self
Converts to this type from the input type.
Source§impl From<InteractionSpecError> for ErasedCallError
impl From<InteractionSpecError> for ErasedCallError
Source§fn from(value: InteractionSpecError) -> Self
fn from(value: InteractionSpecError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ErasedCallError
impl PartialEq for ErasedCallError
Source§impl Serialize for ErasedCallError
impl Serialize for ErasedCallError
impl StructuralPartialEq for ErasedCallError
Auto Trait Implementations§
impl Freeze for ErasedCallError
impl RefUnwindSafe for ErasedCallError
impl Send for ErasedCallError
impl Sync for ErasedCallError
impl Unpin for ErasedCallError
impl UnsafeUnpin for ErasedCallError
impl UnwindSafe for ErasedCallError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.