#[non_exhaustive]pub enum LeaseLossReason {
LeaseExpired,
WorkerDeregistered,
WorkerLost,
}Expand description
Why an activity attempt lost its worker. See ActivityFailure::lease_loss_reason.
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.
LeaseExpired
The Server settled the attempt because its lease expired.
WorkerDeregistered
The Server settled the attempt because its worker deregistered. Only
reported when the recorded exception carries that failure_reason.
WorkerLost
The worker released the attempt because it could not renew the lease.
Implementations§
Trait Implementations§
Source§impl Clone for LeaseLossReason
impl Clone for LeaseLossReason
Source§fn clone(&self) -> LeaseLossReason
fn clone(&self) -> LeaseLossReason
Returns a copy of the value. Read more
1.0.0 · 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 LeaseLossReason
impl Debug for LeaseLossReason
Source§impl Display for LeaseLossReason
impl Display for LeaseLossReason
Source§impl Hash for LeaseLossReason
impl Hash for LeaseLossReason
Source§impl PartialEq for LeaseLossReason
impl PartialEq for LeaseLossReason
impl Copy for LeaseLossReason
impl Eq for LeaseLossReason
impl StructuralPartialEq for LeaseLossReason
Auto Trait Implementations§
impl Freeze for LeaseLossReason
impl RefUnwindSafe for LeaseLossReason
impl Send for LeaseLossReason
impl Sync for LeaseLossReason
impl Unpin for LeaseLossReason
impl UnwindSafe for LeaseLossReason
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