pub enum ApplicationExecutionError<E: Error + 'static, R: Debug> {
BeforeReply(ApplicationExecutionCause<E>),
AfterReply {
source: ApplicationExecutionCause<E>,
reply: Box<R>,
},
}Expand description
A returned response survives every post-reply failure; cancellation still needs durable custody.
Variants§
BeforeReply(ApplicationExecutionCause<E>)
No reply was returned; original consumed authority remains occupied.
AfterReply
Exact response remains owned even if qualification, persistence or checkpointing failed.
Fields
§
source: ApplicationExecutionCause<E>Typed refusal, never replacement spending authority.
Trait Implementations§
Source§impl<E: Error + 'static, R: Debug> Display for ApplicationExecutionError<E, R>where
ApplicationExecutionCause<E>: Display,
impl<E: Error + 'static, R: Debug> Display for ApplicationExecutionError<E, R>where
ApplicationExecutionCause<E>: Display,
Source§impl<E: Error + 'static, R: Debug> Error for ApplicationExecutionError<E, R>
impl<E: Error + 'static, R: Debug> Error for ApplicationExecutionError<E, R>
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<E: Error + 'static, R: Debug> From<ApplicationExecutionCause<E>> for ApplicationExecutionError<E, R>
impl<E: Error + 'static, R: Debug> From<ApplicationExecutionCause<E>> for ApplicationExecutionError<E, R>
Source§fn from(source: ApplicationExecutionCause<E>) -> Self
fn from(source: ApplicationExecutionCause<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E, R> !RefUnwindSafe for ApplicationExecutionError<E, R>
impl<E, R> !UnwindSafe for ApplicationExecutionError<E, R>
impl<E, R> Forget for ApplicationExecutionError<E, R>
impl<E, R> Freeze for ApplicationExecutionError<E, R>
impl<E, R> Move for ApplicationExecutionError<E, R>
impl<E, R> Send for ApplicationExecutionError<E, R>
impl<E, R> Sync for ApplicationExecutionError<E, R>
impl<E, R> Unpin for ApplicationExecutionError<E, R>
impl<E, R> UnsafeUnpin for ApplicationExecutionError<E, R>
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