pub struct ActivityFailure {Show 16 fields
pub kind: ActivityFailureKind,
pub reason: String,
pub message: String,
pub activity_execution_id: Option<String>,
pub activity_attempt_id: Option<String>,
pub activity_type: Option<String>,
pub activity_class: Option<String>,
pub attempt_number: Option<u64>,
pub failure_id: Option<String>,
pub failure_category: Option<String>,
pub timeout_kind: Option<String>,
pub non_retryable: bool,
pub exception_type: Option<String>,
pub exception_class: Option<String>,
pub code: Option<Value>,
pub exception: Option<Value>,
}Expand description
A stable, machine-readable terminal activity failure.
Match Error::ActivityFailed and inspect kind, reason,
failure_category, or timeout_kind; display text is only diagnostic.
Fields§
§kind: ActivityFailureKind§reason: String§message: String§activity_execution_id: Option<String>§activity_attempt_id: Option<String>§activity_type: Option<String>§activity_class: Option<String>§attempt_number: Option<u64>§failure_id: Option<String>§failure_category: Option<String>§timeout_kind: Option<String>§non_retryable: bool§exception_type: Option<String>§exception_class: Option<String>§code: Option<Value>§exception: Option<Value>Trait Implementations§
Source§impl Clone for ActivityFailure
impl Clone for ActivityFailure
Source§fn clone(&self) -> ActivityFailure
fn clone(&self) -> ActivityFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActivityFailure
impl Debug for ActivityFailure
Source§impl Display for ActivityFailure
impl Display for ActivityFailure
Source§impl Error for ActivityFailure
impl Error for ActivityFailure
1.30.0 · 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 ActivityFailure
impl RefUnwindSafe for ActivityFailure
impl Send for ActivityFailure
impl Sync for ActivityFailure
impl Unpin for ActivityFailure
impl UnsafeUnpin for ActivityFailure
impl UnwindSafe for ActivityFailure
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