pub struct ChildWorkflowFailureError { /* private fields */ }Expand description
A normalized child-workflow execution failure wrapper.
Implementations§
Source§impl ChildWorkflowFailureError
impl ChildWorkflowFailureError
Sourcepub fn workflow_execution(&self) -> Option<&WorkflowExecution>
pub fn workflow_execution(&self) -> Option<&WorkflowExecution>
Returns the child workflow execution, if present.
Sourcepub fn workflow_type(&self) -> Option<&WorkflowType>
pub fn workflow_type(&self) -> Option<&WorkflowType>
Returns the child workflow type, if present.
Sourcepub fn initiated_event_id(&self) -> i64
pub fn initiated_event_id(&self) -> i64
Returns the initiated event id.
Sourcepub fn started_event_id(&self) -> i64
pub fn started_event_id(&self) -> i64
Returns the started event id.
Sourcepub fn retry_state(&self) -> RetryState
pub fn retry_state(&self) -> RetryState
Returns the retry state reported by core.
Sourcepub fn as_timeout(&self) -> Option<&TimeoutError>
pub fn as_timeout(&self) -> Option<&TimeoutError>
If this ChildWorkflowFailureError was caused by a timeout, returns the associated
TimeoutError.
Sourcepub fn as_cancelled(&self) -> Option<&CancelledError>
pub fn as_cancelled(&self) -> Option<&CancelledError>
If this ChildWorkflowFailureError was caused by a cancellation, returns the associated
CancelledError.
Source§impl ChildWorkflowFailureError
impl ChildWorkflowFailureError
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 wrapper and returns the retained proto failure.
Sourcepub fn into_parts(self) -> (Failure, Option<IncomingError>)
pub fn into_parts(self) -> (Failure, Option<IncomingError>)
Consumes this wrapper and returns the retained proto failure and normalized cause.
Trait Implementations§
Source§impl Debug for ChildWorkflowFailureError
impl Debug for ChildWorkflowFailureError
Source§impl Display for ChildWorkflowFailureError
impl Display for ChildWorkflowFailureError
Source§impl Error for ChildWorkflowFailureError
impl Error for ChildWorkflowFailureError
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 Freeze for ChildWorkflowFailureError
impl !RefUnwindSafe for ChildWorkflowFailureError
impl Send for ChildWorkflowFailureError
impl Sync for ChildWorkflowFailureError
impl Unpin for ChildWorkflowFailureError
impl UnsafeUnpin for ChildWorkflowFailureError
impl !UnwindSafe for ChildWorkflowFailureError
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> 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