Struct RenewRequest
pub struct RenewRequest {
pub token: TrialOwnerToken,
pub heartbeat_millis: u64,
pub operation: OperationId,
}Expand description
Input to a lease renewal.
Fields§
§token: TrialOwnerTokenThe owner/epoch fence being renewed.
heartbeat_millis: u64The caller’s new heartbeat timestamp.
operation: OperationIdThe lifecycle operation this call belongs to, for cross-process
correlation. OperationId::NONE when the caller has none — an honest
gap, never a fabricated correlation.
Implementations§
§impl RenewRequest
impl RenewRequest
pub const fn new(token: TrialOwnerToken, heartbeat_millis: u64) -> Self
pub const fn new(token: TrialOwnerToken, heartbeat_millis: u64) -> Self
Creates a renewal request.
pub const fn with_operation(self, operation: OperationId) -> Self
pub const fn with_operation(self, operation: OperationId) -> Self
Tags the request with the lifecycle operation it belongs to.
Defaulted rather than required: a backend must work for a caller with no correlation to offer, and a required id would only ever be satisfied with a fresh one that correlates nothing.
Trait Implementations§
§impl Clone for RenewRequest
impl Clone for RenewRequest
§fn clone(&self) -> RenewRequest
fn clone(&self) -> RenewRequest
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 RenewRequest
§impl Debug for RenewRequest
impl Debug for RenewRequest
impl Eq for RenewRequest
§impl PartialEq for RenewRequest
impl PartialEq for RenewRequest
impl StructuralPartialEq for RenewRequest
Auto Trait Implementations§
impl Freeze for RenewRequest
impl RefUnwindSafe for RenewRequest
impl Send for RenewRequest
impl Sync for RenewRequest
impl Unpin for RenewRequest
impl UnsafeUnpin for RenewRequest
impl UnwindSafe for RenewRequest
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