pub struct LeaseHandle { /* private fields */ }Expand description
Workload-facing handle for observing a registered lease.
A handle is intentionally narrow: it exposes the lease id and the canonical revoke state for that lease, but it does not own renewal, admission, or scheduler policy.
Implementations§
Source§impl LeaseHandle
impl LeaseHandle
Sourcepub fn revoke_state(&self) -> RevokeState
pub fn revoke_state(&self) -> RevokeState
Returns the latest revoke state observed by the renewal manager.
Sourcepub fn is_revoke_terminal(&self) -> bool
pub fn is_revoke_terminal(&self) -> bool
Returns true when the lease has reached a terminal revoke state.
Trait Implementations§
Source§impl Clone for LeaseHandle
impl Clone for LeaseHandle
Source§fn clone(&self) -> LeaseHandle
fn clone(&self) -> LeaseHandle
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 moreAuto Trait Implementations§
impl Freeze for LeaseHandle
impl !RefUnwindSafe for LeaseHandle
impl !Send for LeaseHandle
impl !Sync for LeaseHandle
impl Unpin for LeaseHandle
impl !UnwindSafe for LeaseHandle
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