pub enum IncomingError {
Application(ApplicationFailure),
Timeout(TimeoutError),
Cancelled(CancelledError),
Terminated(TerminatedError),
Server(ServerError),
ResetWorkflow(ResetWorkflowError),
Activity(ActivityFailureError),
ChildWorkflowExecution(ChildWorkflowFailureError),
NexusOperationExecution(IncomingNexusOperationExecutionError),
NexusHandler(IncomingNexusHandlerError),
}Expand description
A normalized incoming Temporal failure decoded from a protobuf Failure.
Variants§
Application(ApplicationFailure)
A decoded application failure.
Timeout(TimeoutError)
A decoded timeout failure.
Cancelled(CancelledError)
A decoded cancellation failure.
Terminated(TerminatedError)
A decoded terminated failure.
Server(ServerError)
A decoded server failure.
ResetWorkflow(ResetWorkflowError)
A decoded reset-workflow failure.
Activity(ActivityFailureError)
A decoded activity failure wrapper.
ChildWorkflowExecution(ChildWorkflowFailureError)
A decoded child-workflow failure wrapper.
NexusOperationExecution(IncomingNexusOperationExecutionError)
A decoded nexus operation failure wrapper.
NexusHandler(IncomingNexusHandlerError)
A decoded nexus handler failure wrapper.
Implementations§
Source§impl IncomingError
impl IncomingError
Sourcepub fn failure(&self) -> &Failure
pub fn failure(&self) -> &Failure
Returns the original failure proto for this normalized error.
Sourcepub fn cause(&self) -> Option<&IncomingError>
pub fn cause(&self) -> Option<&IncomingError>
Returns the normalized cause, if any.
Sourcepub fn into_failure(self) -> Failure
pub fn into_failure(self) -> Failure
Consumes this normalized error and returns the retained proto failure.
Sourcepub fn as_timeout(&self) -> Option<&TimeoutError>
pub fn as_timeout(&self) -> Option<&TimeoutError>
If the IncomingError is a timeout, returns the associated TimeoutError.
Sourcepub fn as_cancelled(&self) -> Option<&CancelledError>
pub fn as_cancelled(&self) -> Option<&CancelledError>
If the IncomingError is a cancellation, returns the associated CancelledError.
Trait Implementations§
Source§impl Debug for IncomingError
impl Debug for IncomingError
Source§impl Display for IncomingError
impl Display for IncomingError
Source§impl Error for IncomingError
impl Error for IncomingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for IncomingError
impl !RefUnwindSafe for IncomingError
impl Send for IncomingError
impl Sync for IncomingError
impl Unpin for IncomingError
impl UnsafeUnpin for IncomingError
impl !UnwindSafe for IncomingError
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request