#[non_exhaustive]pub struct LeaseSummary {
pub lease_epoch: LeaseEpoch,
pub worker_instance_id: WorkerInstanceId,
pub expires_at: TimestampMs,
}Expand description
Currently-held lease summary inside an ExecutionSnapshot.
#[non_exhaustive].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.lease_epoch: LeaseEpoch§worker_instance_id: WorkerInstanceId§expires_at: TimestampMsImplementations§
Source§impl LeaseSummary
impl LeaseSummary
Sourcepub fn new(
lease_epoch: LeaseEpoch,
worker_instance_id: WorkerInstanceId,
expires_at: TimestampMs,
) -> Self
pub fn new( lease_epoch: LeaseEpoch, worker_instance_id: WorkerInstanceId, expires_at: TimestampMs, ) -> Self
Construct a LeaseSummary. See ExecutionSnapshot::new
for the rationale.
Trait Implementations§
Source§impl Clone for LeaseSummary
impl Clone for LeaseSummary
Source§fn clone(&self) -> LeaseSummary
fn clone(&self) -> LeaseSummary
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 LeaseSummary
impl Debug for LeaseSummary
Source§impl PartialEq for LeaseSummary
impl PartialEq for LeaseSummary
impl Eq for LeaseSummary
impl StructuralPartialEq for LeaseSummary
Auto Trait Implementations§
impl Freeze for LeaseSummary
impl RefUnwindSafe for LeaseSummary
impl Send for LeaseSummary
impl Sync for LeaseSummary
impl Unpin for LeaseSummary
impl UnsafeUnpin for LeaseSummary
impl UnwindSafe for LeaseSummary
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