pub struct ReadPin {
pub count: usize,
pub lease_ms: u64,
pub generation: u64,
}Expand description
One commit index’s retained read lease.
generation identifies the set of live views sharing this entry. It changes
whenever the entry is re-created after being emptied or expired, so a stale
ReadView that drops after GC expired its lease cannot decrement a newer,
unrelated pin that happens to sit at the same commit index.
Fields§
§count: usizeNumber of live views currently pinned at this commit index.
lease_ms: u64Wall-clock millis of the most recent pin admission (lease age base).
generation: u64Identity of this pin generation (see type docs).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadPin
impl RefUnwindSafe for ReadPin
impl Send for ReadPin
impl Sync for ReadPin
impl Unpin for ReadPin
impl UnsafeUnpin for ReadPin
impl UnwindSafe for ReadPin
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