pub enum JobLeaseState {
Pending,
Active {
expires_at: Timestamp,
},
Closed,
}Expand description
Local ownership state; an active handle still needs authoritative validation.
Variants§
Pending
The claim belongs to an edit that has not committed yet.
Active
The owning edit committed; the timestamp is the last accepted expiry.
Closed
Ownership ended through a terminal transition or failed claiming edit.
Trait Implementations§
Source§impl Clone for JobLeaseState
impl Clone for JobLeaseState
Source§fn clone(&self) -> JobLeaseState
fn clone(&self) -> JobLeaseState
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 moreimpl Copy for JobLeaseState
Source§impl Debug for JobLeaseState
impl Debug for JobLeaseState
impl Eq for JobLeaseState
Source§impl PartialEq for JobLeaseState
impl PartialEq for JobLeaseState
impl StructuralPartialEq for JobLeaseState
Auto Trait Implementations§
impl Freeze for JobLeaseState
impl RefUnwindSafe for JobLeaseState
impl Send for JobLeaseState
impl Sync for JobLeaseState
impl Unpin for JobLeaseState
impl UnsafeUnpin for JobLeaseState
impl UnwindSafe for JobLeaseState
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