pub struct SessionExecutionLease {
pub session_id: String,
pub owner_id: String,
pub lease_token: String,
pub fencing_token: u64,
pub claimed_at_epoch_ms: u64,
pub expires_at_epoch_ms: u64,
}Fields§
§session_id: String§owner_id: String§lease_token: String§fencing_token: u64§claimed_at_epoch_ms: u64§expires_at_epoch_ms: u64Implementations§
Source§impl SessionExecutionLease
impl SessionExecutionLease
pub fn fence(&self) -> SessionExecutionLeaseFence
pub fn completion(&self) -> SessionExecutionLeaseCompletion
Trait Implementations§
Source§impl Clone for SessionExecutionLease
impl Clone for SessionExecutionLease
Source§fn clone(&self) -> SessionExecutionLease
fn clone(&self) -> SessionExecutionLease
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 SessionExecutionLease
impl Debug for SessionExecutionLease
Source§impl<'de> Deserialize<'de> for SessionExecutionLease
impl<'de> Deserialize<'de> for SessionExecutionLease
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionExecutionLease
Source§impl PartialEq for SessionExecutionLease
impl PartialEq for SessionExecutionLease
Source§fn eq(&self, other: &SessionExecutionLease) -> bool
fn eq(&self, other: &SessionExecutionLease) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionExecutionLease
impl Serialize for SessionExecutionLease
impl StructuralPartialEq for SessionExecutionLease
Auto Trait Implementations§
impl Freeze for SessionExecutionLease
impl RefUnwindSafe for SessionExecutionLease
impl Send for SessionExecutionLease
impl Sync for SessionExecutionLease
impl Unpin for SessionExecutionLease
impl UnsafeUnpin for SessionExecutionLease
impl UnwindSafe for SessionExecutionLease
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