pub struct CorrelationVector { /* private fields */ }Expand description
The Correlation Vector struct
Implementations§
Source§impl CorrelationVector
impl CorrelationVector
Sourcepub fn new() -> CorrelationVector
pub fn new() -> CorrelationVector
Creates a new CorrelationVector with a randomly generated UUID.
Sourcepub fn new_from_uuid(base: Uuid) -> CorrelationVector
pub fn new_from_uuid(base: Uuid) -> CorrelationVector
Create a new CorrelationVector from a given UUID.
Sourcepub fn parse(
input: &str,
) -> Result<CorrelationVector, CorrelationVectorParseError>
pub fn parse( input: &str, ) -> Result<CorrelationVector, CorrelationVectorParseError>
Create a new CorrelationVector struct from a string representation of a CorrelationVector.
Sourcepub fn spin(&mut self, params: SpinParams)
pub fn spin(&mut self, params: SpinParams)
Transform the vector clock in a unique, monotonically increasing way. This is mostly used in situations where increment can not guaranatee uniqueness
Trait Implementations§
Source§impl Debug for CorrelationVector
impl Debug for CorrelationVector
Source§impl Default for CorrelationVector
impl Default for CorrelationVector
Source§impl Display for CorrelationVector
impl Display for CorrelationVector
Source§impl PartialEq for CorrelationVector
impl PartialEq for CorrelationVector
impl Eq for CorrelationVector
impl StructuralPartialEq for CorrelationVector
Auto Trait Implementations§
impl Freeze for CorrelationVector
impl RefUnwindSafe for CorrelationVector
impl Send for CorrelationVector
impl Sync for CorrelationVector
impl Unpin for CorrelationVector
impl UnwindSafe for CorrelationVector
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