pub struct LeaseRecord {
pub holder_id: String,
pub acquired_at_unix: u64,
pub expires_at_unix: u64,
pub completed_cursor_hex: Option<String>,
pub completed_at_unix: Option<u64>,
}Expand description
The lease key’s value: who holds (or last held) the round, until when, and
— after LeaseGuard::complete — what was exported.
Fields§
§holder_id: StringIdentity of the node that won the round (caller-chosen, e.g. node id).
acquired_at_unix: u64When the round was won, seconds since the Unix epoch.
expires_at_unix: u64When the lease lapses and the next round may be won. This is the round
period: the “at most once per ttl” bound.
completed_cursor_hex: Option<String>Hex of the exported artifact’s cursor, set by LeaseGuard::complete.
completed_at_unix: Option<u64>When the round completed (artifact uploaded), set by
LeaseGuard::complete.
Trait Implementations§
Source§impl Clone for LeaseRecord
impl Clone for LeaseRecord
Source§fn clone(&self) -> LeaseRecord
fn clone(&self) -> LeaseRecord
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 LeaseRecord
impl Debug for LeaseRecord
Source§impl<'de> Deserialize<'de> for LeaseRecord
impl<'de> Deserialize<'de> for LeaseRecord
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
Auto Trait Implementations§
impl Freeze for LeaseRecord
impl RefUnwindSafe for LeaseRecord
impl Send for LeaseRecord
impl Sync for LeaseRecord
impl Unpin for LeaseRecord
impl UnsafeUnpin for LeaseRecord
impl UnwindSafe for LeaseRecord
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