pub struct DispatchError { /* private fields */ }Expand description
An unchanged runtime error with provenance from one dispatch boundary.
Implementations§
Source§impl DispatchError
impl DispatchError
Sourcepub fn source(&self) -> &RuntimeError
pub fn source(&self) -> &RuntimeError
Borrow the original error without changing its classification.
Sourcepub fn disposition(&self) -> DomainDisposition
pub fn disposition(&self) -> DomainDisposition
Read provenance belonging to this dispatch, not to a nested operation.
Sourcepub fn into_parts(self) -> (RuntimeError, DomainDisposition)
pub fn into_parts(self) -> (RuntimeError, DomainDisposition)
Separate the original error from its dispatch provenance.
Sourcepub fn into_source(self) -> RuntimeError
pub fn into_source(self) -> RuntimeError
Compatibility path for callers that consume runtime errors directly.
Trait Implementations§
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
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 !RefUnwindSafe for DispatchError
impl !UnwindSafe for DispatchError
impl Forget for DispatchError
impl Freeze for DispatchErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RuntimeError is !null: Freeze,
PhantomData<RuntimeError>: Freeze,
&'static str: Freeze,
*const LintFixFailureDetail is !null: Freeze,
PhantomData<LintFixFailureDetail>: Freeze,
*const AuditObligationFailure is !null: Freeze,
PhantomData<AuditObligationFailure>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const StorageError is !null: Freeze,
PhantomData<StorageError>: Freeze,
String: Freeze,
*const SecretMatch is !null: Freeze,
PhantomData<SecretMatch>: Freeze,
*const dyn Error + Sync + Send is !null: Freeze,
PhantomData<dyn Error + Sync + Send>: Freeze,
PhantomData<MissingPackDependency>: Freeze,
PhantomData<String>: Freeze,
*const ReceiptRefusal is !null: Freeze,
PhantomData<ReceiptRefusal>: Freeze,
PhantomData<RefusalEventRecording>: Freeze,
*const BatchWriteContext is !null: Freeze,
PhantomData<BatchWriteContext>: Freeze,
PhantomData<Uuid>: Freeze,
*const DenialReceipt is !null: Freeze,
PhantomData<DenialReceipt>: Freeze,
PhantomData<(Cow<'static, str>, Cow<'static, str>)>: Freeze,
impl Move for DispatchError
impl Send for DispatchErrorwhere
RawVecInner: Send,
BoxRaw<RuntimeError>: Send,
&'static str: Send,
BoxRaw<LintFixFailureDetail>: Send,
BoxRaw<AuditObligationFailure>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
BoxRaw<StorageError>: Send,
String: Send,
BoxRaw<SecretMatch>: Send,
BoxRaw<dyn Error + Sync + Send>: Send,
BoxRaw<ReceiptRefusal>: Send,
BoxRaw<BatchWriteContext>: Send,
BoxRaw<DenialReceipt>: Send,
impl Sync for DispatchErrorwhere
RawVecInner: Sync,
BoxRaw<RuntimeError>: Sync,
BoxRaw<LintFixFailureDetail>: Sync,
BoxRaw<AuditObligationFailure>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
BoxRaw<StorageError>: Sync,
String: Sync,
BoxRaw<SecretMatch>: Sync,
BoxRaw<dyn Error + Sync + Send>: Sync,
BoxRaw<ReceiptRefusal>: Sync,
BoxRaw<BatchWriteContext>: Sync,
BoxRaw<DenialReceipt>: Sync,
impl Unpin for DispatchErrorwhere
*const u8 is !null: Unpin,
Box<RuntimeError>: Unpin,
&'static str: Unpin,
Box<LintFixFailureDetail>: Unpin,
Box<AuditObligationFailure>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Box<StorageError>: Unpin,
String: Unpin,
Box<SecretMatch>: Unpin,
Box<dyn Error + Sync + Send>: Unpin,
Box<ReceiptRefusal>: Unpin,
Box<BatchWriteContext>: Unpin,
Box<DenialReceipt>: Unpin,
impl UnsafeUnpin for DispatchErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RuntimeError is !null: UnsafeUnpin,
PhantomData<RuntimeError>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const LintFixFailureDetail is !null: UnsafeUnpin,
PhantomData<LintFixFailureDetail>: UnsafeUnpin,
*const AuditObligationFailure is !null: UnsafeUnpin,
PhantomData<AuditObligationFailure>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const StorageError is !null: UnsafeUnpin,
PhantomData<StorageError>: UnsafeUnpin,
String: UnsafeUnpin,
*const SecretMatch is !null: UnsafeUnpin,
PhantomData<SecretMatch>: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
PhantomData<MissingPackDependency>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ReceiptRefusal is !null: UnsafeUnpin,
PhantomData<ReceiptRefusal>: UnsafeUnpin,
PhantomData<RefusalEventRecording>: UnsafeUnpin,
*const BatchWriteContext is !null: UnsafeUnpin,
PhantomData<BatchWriteContext>: UnsafeUnpin,
PhantomData<Uuid>: UnsafeUnpin,
*const DenialReceipt is !null: UnsafeUnpin,
PhantomData<DenialReceipt>: UnsafeUnpin,
PhantomData<(Cow<'static, str>, Cow<'static, str>)>: UnsafeUnpin,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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