pub enum LeaseVerdict {
Granted {
lease_id: String,
},
Deferred {
bucket: String,
key: String,
retry_at_unix: i64,
},
Unmanaged,
}Expand description
The control plane’s answer to a lease request, flattened for the caller.
Variants§
Granted
The fleet has budget; the shared buckets are already debited. Report the outcome against
lease_id when the order finishes.
Deferred
A shared CA bucket is spent. Nothing was debited and the order must not be sent.
Unmanaged
The control plane keeps no books for this CA (or is too old to know about leases). The local per-edge budget is the only guard, which is where things stood before leases existed.
Trait Implementations§
Source§impl Clone for LeaseVerdict
impl Clone for LeaseVerdict
Source§fn clone(&self) -> LeaseVerdict
fn clone(&self) -> LeaseVerdict
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 moreSource§impl Debug for LeaseVerdict
impl Debug for LeaseVerdict
impl Eq for LeaseVerdict
Source§impl PartialEq for LeaseVerdict
impl PartialEq for LeaseVerdict
impl StructuralPartialEq for LeaseVerdict
Auto Trait Implementations§
impl Freeze for LeaseVerdict
impl RefUnwindSafe for LeaseVerdict
impl Send for LeaseVerdict
impl Sync for LeaseVerdict
impl Unpin for LeaseVerdict
impl UnsafeUnpin for LeaseVerdict
impl UnwindSafe for LeaseVerdict
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§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.