pub enum OwnershipState {
Unowned,
Leased,
LeaseExpiredReclaimable,
LeaseRevoked,
}Expand description
Who, if anyone, is currently allowed to mutate active execution state?
Variants§
Unowned
No current lease.
Leased
A worker holds a valid lease.
LeaseExpiredReclaimable
Lease TTL passed without renewal. Execution awaits reclaim.
LeaseRevoked
Lease was explicitly revoked by operator or engine.
Trait Implementations§
Source§impl Clone for OwnershipState
impl Clone for OwnershipState
Source§fn clone(&self) -> OwnershipState
fn clone(&self) -> OwnershipState
Returns a duplicate 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 OwnershipState
impl Debug for OwnershipState
Source§impl<'de> Deserialize<'de> for OwnershipState
impl<'de> Deserialize<'de> for OwnershipState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for OwnershipState
impl Hash for OwnershipState
Source§impl PartialEq for OwnershipState
impl PartialEq for OwnershipState
Source§impl Serialize for OwnershipState
impl Serialize for OwnershipState
impl Copy for OwnershipState
impl Eq for OwnershipState
impl StructuralPartialEq for OwnershipState
Auto Trait Implementations§
impl Freeze for OwnershipState
impl RefUnwindSafe for OwnershipState
impl Send for OwnershipState
impl Sync for OwnershipState
impl Unpin for OwnershipState
impl UnsafeUnpin for OwnershipState
impl UnwindSafe for OwnershipState
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