pub struct CommitToken { /* private fields */ }Expand description
A bookmark identifying a specific committed transaction in the master’s replication stream.
Port of com.sleepycat.je.CommitToken ({ repenvUUID, vlsn }).
Implementations§
Source§impl CommitToken
impl CommitToken
Sourcepub fn new(group: impl Into<String>, vlsn: u64) -> Option<Self>
pub fn new(group: impl Into<String>, vlsn: u64) -> Option<Self>
Create a commit token for vlsn produced by replication group.
Port of new CommitToken(envUUID, commitVLSN.getSequence())
(MasterTxn.getCommitToken). Mirrors JE’s invariant that the VLSN
must not be NULL (0): a token with no commit VLSN is meaningless, so
returns None rather than minting a bogus bookmark.
Trait Implementations§
Source§impl Clone for CommitToken
impl Clone for CommitToken
Source§fn clone(&self) -> CommitToken
fn clone(&self) -> CommitToken
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 CommitToken
impl Debug for CommitToken
impl Eq for CommitToken
Source§impl Hash for CommitToken
impl Hash for CommitToken
Source§impl PartialEq for CommitToken
impl PartialEq for CommitToken
Source§fn eq(&self, other: &CommitToken) -> bool
fn eq(&self, other: &CommitToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommitToken
Auto Trait Implementations§
impl Freeze for CommitToken
impl RefUnwindSafe for CommitToken
impl Send for CommitToken
impl Sync for CommitToken
impl Unpin for CommitToken
impl UnsafeUnpin for CommitToken
impl UnwindSafe for CommitToken
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more