#[non_exhaustive]pub enum LeaseState {
Queued,
Active,
Released,
Expired,
}Expand description
Where a lease is in its lifecycle.
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.
Queued
Waiting for resources.
Active
Granted; its reservation counts against the machine.
Released
Released by its holder.
Expired
Ended by the daemon because the heartbeat stopped or the holder died.
Implementations§
Trait Implementations§
Source§impl Clone for LeaseState
impl Clone for LeaseState
impl Copy for LeaseState
Source§impl Debug for LeaseState
impl Debug for LeaseState
Source§impl<'de> Deserialize<'de> for LeaseState
impl<'de> Deserialize<'de> for LeaseState
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
impl Eq for LeaseState
Source§impl Hash for LeaseState
impl Hash for LeaseState
Source§impl PartialEq for LeaseState
impl PartialEq for LeaseState
Source§impl Serialize for LeaseState
impl Serialize for LeaseState
impl StructuralPartialEq for LeaseState
Auto Trait Implementations§
impl Forget for LeaseState
impl Freeze for LeaseState
impl RefUnwindSafe for LeaseState
impl Send for LeaseState
impl Sync for LeaseState
impl Unpin for LeaseState
impl UnsafeUnpin for LeaseState
impl UnwindSafe for LeaseState
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