pub struct RegisterState { /* private fields */ }Expand description
Internal state of the ranked register as stored in FoundationDB
Tracks the maximum read and write ranks alongside the current value. Private fields enforce invariants through the algorithm module.
Implementations§
Source§impl RegisterState
impl RegisterState
Sourcepub fn max_read_rank(&self) -> Rank
pub fn max_read_rank(&self) -> Rank
Returns the highest rank that has performed a read
Sourcepub fn max_write_rank(&self) -> Rank
pub fn max_write_rank(&self) -> Rank
Returns the highest rank that has successfully written
Trait Implementations§
Source§impl Clone for RegisterState
impl Clone for RegisterState
Source§fn clone(&self) -> RegisterState
fn clone(&self) -> RegisterState
Returns a duplicate of the value. Read more
1.0.0 · 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 RegisterState
impl Debug for RegisterState
Source§impl Default for RegisterState
impl Default for RegisterState
Source§fn default() -> RegisterState
fn default() -> RegisterState
Returns the “default value” for a type. Read more
Source§impl PartialEq for RegisterState
impl PartialEq for RegisterState
impl Eq for RegisterState
impl StructuralPartialEq for RegisterState
Auto Trait Implementations§
impl Freeze for RegisterState
impl RefUnwindSafe for RegisterState
impl Send for RegisterState
impl Sync for RegisterState
impl Unpin for RegisterState
impl UnwindSafe for RegisterState
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