pub struct LeaseGrant {
pub lease_id: String,
pub revision: u64,
pub expires_at: u64,
pub granted_seconds: u32,
}Expand description
A bounded server-generated listening reservation, never an authentication token.
Fields§
§lease_id: StringOpaque identifier supplied by the trusted server’s secure generator.
revision: u64Policy generation used for this grant.
expires_at: u64Exclusive expiry in Unix seconds.
granted_seconds: u32Granted duration, between one and ten seconds.
Trait Implementations§
Source§impl Clone for LeaseGrant
impl Clone for LeaseGrant
Source§fn clone(&self) -> LeaseGrant
fn clone(&self) -> LeaseGrant
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 LeaseGrant
impl Debug for LeaseGrant
Auto Trait Implementations§
impl Freeze for LeaseGrant
impl RefUnwindSafe for LeaseGrant
impl Send for LeaseGrant
impl Sync for LeaseGrant
impl Unpin for LeaseGrant
impl UnwindSafe for LeaseGrant
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