pub struct CodeIndexTaskLeaseRenewal {
pub task_id: String,
pub lease_owner: String,
pub attempt_count: u32,
pub publication_generation: u64,
pub lease_duration_ms: u64,
pub now_ms: u64,
}Expand description
Strict renewal request for one still-live fenced code-index attempt.
Expiry is irrevocable. now_ms is only the caller’s observation; storage
samples authoritative time after acquiring its writer lock.
Fields§
§task_id: String§lease_owner: String§attempt_count: u32§publication_generation: u64§lease_duration_ms: u64§now_ms: u64Caller-observed time used only to reject future/rollback observations. Storage samples authoritative time after obtaining its writer lock.
Trait Implementations§
Source§impl Clone for CodeIndexTaskLeaseRenewal
impl Clone for CodeIndexTaskLeaseRenewal
Source§fn clone(&self) -> CodeIndexTaskLeaseRenewal
fn clone(&self) -> CodeIndexTaskLeaseRenewal
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 CodeIndexTaskLeaseRenewal
impl Debug for CodeIndexTaskLeaseRenewal
impl Eq for CodeIndexTaskLeaseRenewal
impl StructuralPartialEq for CodeIndexTaskLeaseRenewal
Auto Trait Implementations§
impl Freeze for CodeIndexTaskLeaseRenewal
impl RefUnwindSafe for CodeIndexTaskLeaseRenewal
impl Send for CodeIndexTaskLeaseRenewal
impl Sync for CodeIndexTaskLeaseRenewal
impl Unpin for CodeIndexTaskLeaseRenewal
impl UnsafeUnpin for CodeIndexTaskLeaseRenewal
impl UnwindSafe for CodeIndexTaskLeaseRenewal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.