#[non_exhaustive]pub enum OutgoingWorkflowError {
Application(Box<ApplicationFailure>),
PayloadConversion(PayloadConversionError),
ActivityExecution(Box<ActivityExecutionError>),
ChildWorkflowExecution(Box<ChildWorkflowExecutionError>),
ChildWorkflowStart(Box<ChildWorkflowStartError>),
WorkflowSignal(Box<WorkflowSignalError>),
}Expand description
A typed outbound workflow failure.
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.
Application(Box<ApplicationFailure>)
A workflow application failure.
PayloadConversion(PayloadConversionError)
A workflow payload conversion failure.
ActivityExecution(Box<ActivityExecutionError>)
A workflow failure sourced from an activity execution.
ChildWorkflowExecution(Box<ChildWorkflowExecutionError>)
A workflow failure sourced from a child-workflow execution.
ChildWorkflowStart(Box<ChildWorkflowStartError>)
A workflow failure sourced from child-workflow start.
WorkflowSignal(Box<WorkflowSignalError>)
A workflow failure sourced from signaling a workflow.
Implementations§
Source§impl OutgoingWorkflowError
impl OutgoingWorkflowError
Sourcepub fn as_cancelled(&self) -> Option<&CancelledError>
pub fn as_cancelled(&self) -> Option<&CancelledError>
If this workflow error was caused by cancellation, returns the associated
CancelledError.
Trait Implementations§
Source§impl Debug for OutgoingWorkflowError
impl Debug for OutgoingWorkflowError
Source§impl Display for OutgoingWorkflowError
impl Display for OutgoingWorkflowError
Source§impl Error for OutgoingWorkflowError
impl Error for OutgoingWorkflowError
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<ActivityExecutionError> for OutgoingWorkflowError
impl From<ActivityExecutionError> for OutgoingWorkflowError
Source§fn from(value: ActivityExecutionError) -> OutgoingWorkflowError
fn from(value: ActivityExecutionError) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<ApplicationFailure> for OutgoingWorkflowError
impl From<ApplicationFailure> for OutgoingWorkflowError
Source§fn from(value: ApplicationFailure) -> OutgoingWorkflowError
fn from(value: ApplicationFailure) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<Box<ActivityExecutionError>> for OutgoingWorkflowError
impl From<Box<ActivityExecutionError>> for OutgoingWorkflowError
Source§fn from(source: Box<ActivityExecutionError>) -> OutgoingWorkflowError
fn from(source: Box<ActivityExecutionError>) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<Box<ApplicationFailure>> for OutgoingWorkflowError
impl From<Box<ApplicationFailure>> for OutgoingWorkflowError
Source§fn from(source: Box<ApplicationFailure>) -> OutgoingWorkflowError
fn from(source: Box<ApplicationFailure>) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<Box<ChildWorkflowExecutionError>> for OutgoingWorkflowError
impl From<Box<ChildWorkflowExecutionError>> for OutgoingWorkflowError
Source§fn from(source: Box<ChildWorkflowExecutionError>) -> OutgoingWorkflowError
fn from(source: Box<ChildWorkflowExecutionError>) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<Box<ChildWorkflowStartError>> for OutgoingWorkflowError
impl From<Box<ChildWorkflowStartError>> for OutgoingWorkflowError
Source§fn from(source: Box<ChildWorkflowStartError>) -> OutgoingWorkflowError
fn from(source: Box<ChildWorkflowStartError>) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<Box<WorkflowSignalError>> for OutgoingWorkflowError
impl From<Box<WorkflowSignalError>> for OutgoingWorkflowError
Source§fn from(source: Box<WorkflowSignalError>) -> OutgoingWorkflowError
fn from(source: Box<WorkflowSignalError>) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<ChildWorkflowExecutionError> for OutgoingWorkflowError
impl From<ChildWorkflowExecutionError> for OutgoingWorkflowError
Source§fn from(value: ChildWorkflowExecutionError) -> OutgoingWorkflowError
fn from(value: ChildWorkflowExecutionError) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<ChildWorkflowStartError> for OutgoingWorkflowError
impl From<ChildWorkflowStartError> for OutgoingWorkflowError
Source§fn from(value: ChildWorkflowStartError) -> OutgoingWorkflowError
fn from(value: ChildWorkflowStartError) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<Error> for OutgoingWorkflowError
impl From<Error> for OutgoingWorkflowError
Source§fn from(value: Error) -> OutgoingWorkflowError
fn from(value: Error) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<OutgoingWorkflowError> for OutgoingError
impl From<OutgoingWorkflowError> for OutgoingError
Source§fn from(source: OutgoingWorkflowError) -> OutgoingError
fn from(source: OutgoingWorkflowError) -> OutgoingError
Converts to this type from the input type.
Source§impl From<PayloadConversionError> for OutgoingWorkflowError
impl From<PayloadConversionError> for OutgoingWorkflowError
Source§fn from(source: PayloadConversionError) -> OutgoingWorkflowError
fn from(source: PayloadConversionError) -> OutgoingWorkflowError
Converts to this type from the input type.
Source§impl From<WorkflowSignalError> for OutgoingWorkflowError
impl From<WorkflowSignalError> for OutgoingWorkflowError
Source§fn from(value: WorkflowSignalError) -> OutgoingWorkflowError
fn from(value: WorkflowSignalError) -> OutgoingWorkflowError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OutgoingWorkflowError
impl !UnwindSafe for OutgoingWorkflowError
impl Freeze for OutgoingWorkflowError
impl Send for OutgoingWorkflowError
impl Sync for OutgoingWorkflowError
impl Unpin for OutgoingWorkflowError
impl UnsafeUnpin for OutgoingWorkflowError
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
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 moreSource§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>
Wrap the input message
T in a tonic::Request