pub enum LeaseRelease {
Released,
NoLease,
NotTheHolder,
}Expand description
What asking to drop a client-driven run’s lease came to (see
release_client_run).
The three outcomes are kept apart because the release endpoint answers each one differently: a release that dropped a lease and a release that found none are both a job done (the run is unheld either way, which is all a caller wanted), while a caller presenting somebody else’s token is refused rather than quietly obeyed.
Variants§
Released
The caller held the lease, and it is gone.
NoLease
There was no lease on the run to drop: it lapsed, it was released already, or this process never opened the run at all.
NotTheHolder
A lease stands on the run and the caller did not present its token. Nothing was dropped.
Trait Implementations§
Source§impl Clone for LeaseRelease
impl Clone for LeaseRelease
Source§fn clone(&self) -> LeaseRelease
fn clone(&self) -> LeaseRelease
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 LeaseRelease
Source§impl Debug for LeaseRelease
impl Debug for LeaseRelease
impl Eq for LeaseRelease
Source§impl PartialEq for LeaseRelease
impl PartialEq for LeaseRelease
impl StructuralPartialEq for LeaseRelease
Auto Trait Implementations§
impl Freeze for LeaseRelease
impl RefUnwindSafe for LeaseRelease
impl Send for LeaseRelease
impl Sync for LeaseRelease
impl Unpin for LeaseRelease
impl UnsafeUnpin for LeaseRelease
impl UnwindSafe for LeaseRelease
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.