pub enum ExpiryResult {
Active,
Expired,
}Expand description
Result of lease expiry evaluation.
Variants§
Active
Lease is still active (not yet expired).
Expired
Lease has expired and the run can re-enter eligibility.
Implementations§
Source§impl ExpiryResult
impl ExpiryResult
Sourcepub const fn is_expired(&self) -> bool
pub const fn is_expired(&self) -> bool
Returns true when the evaluated lease is expired.
Sourcepub const fn can_reenter_eligibility(&self) -> bool
pub const fn can_reenter_eligibility(&self) -> bool
Returns true when the run may re-enter eligibility.
In Phase 5 lease semantics, this is true if and only if the lease is expired.
Trait Implementations§
Source§impl Clone for ExpiryResult
impl Clone for ExpiryResult
Source§fn clone(&self) -> ExpiryResult
fn clone(&self) -> ExpiryResult
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 ExpiryResult
impl Debug for ExpiryResult
Source§impl PartialEq for ExpiryResult
impl PartialEq for ExpiryResult
impl Eq for ExpiryResult
impl StructuralPartialEq for ExpiryResult
Auto Trait Implementations§
impl Freeze for ExpiryResult
impl RefUnwindSafe for ExpiryResult
impl Send for ExpiryResult
impl Sync for ExpiryResult
impl Unpin for ExpiryResult
impl UnsafeUnpin for ExpiryResult
impl UnwindSafe for ExpiryResult
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