pub struct HlcVersionedPointer<T> { /* private fields */ }Expand description
Pointer + HLC. Composes VersionedPointer with the cascade
structure of (physical, logical). Two-level rejection on
visible_at: physical mismatch rejects fast, logical compares
only when physical ties.
Implementations§
Source§impl<T> HlcVersionedPointer<T>
impl<T> HlcVersionedPointer<T>
Sourcepub const SIGNATURE: AxisMask
pub const SIGNATURE: AxisMask
Direction signature of HlcVersionedPointer<T>. Engages the
K_version axis (hybrid-logical-clock version stored at
slot for distributed MVCC).
pub const fn new(target: Arc<T>, clock: HybridLogicalClock) -> Self
pub const fn clock(&self) -> HybridLogicalClock
pub fn target(&self) -> &Arc<T> ⓘ
pub fn visible_at(&self, snapshot: HybridLogicalClock) -> bool
pub fn read_at(&self, snapshot: HybridLogicalClock) -> Option<&T>
Trait Implementations§
Source§impl<T: Clone> Clone for HlcVersionedPointer<T>
impl<T: Clone> Clone for HlcVersionedPointer<T>
Source§fn clone(&self) -> HlcVersionedPointer<T>
fn clone(&self) -> HlcVersionedPointer<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for HlcVersionedPointer<T>
impl<T> RefUnwindSafe for HlcVersionedPointer<T>where
Arc<T>: RefUnwindSafe,
impl<T> Send for HlcVersionedPointer<T>
impl<T> Sync for HlcVersionedPointer<T>
impl<T> Unpin for HlcVersionedPointer<T>
impl<T> UnsafeUnpin for HlcVersionedPointer<T>where
Arc<T>: UnsafeUnpin,
impl<T> UnwindSafe for HlcVersionedPointer<T>where
Arc<T>: UnwindSafe,
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