pub struct ReplBufferData {
pub data: StringVector,
pub lamport_clock: Nonce,
pub outgoing_timestamp: Seconds,
pub incoming_timestamp: Seconds,
pub message_id: String,
pub sender: PeerId,
pub confirmations: Option<Nonce>,
}
Expand description
Important data to marshall from incoming relication payload and store in the replica buffer.
Fields§
§data: StringVector
Raw incoming data.
lamport_clock: Nonce
Lamports clock for synchronization.
outgoing_timestamp: Seconds
Timestamp at which the message left the sending node.
incoming_timestamp: Seconds
Timestamp at which the message arrived.
message_id: String
Message ID to prevent deduplication. It is usually a hash of the incoming message.
sender: PeerId
Sender PeerId.
confirmations: Option<Nonce>
Number of confirmations. This is to help the nodes using the strong consistency synchronization data model to come to an agreement
Trait Implementations§
Source§impl Clone for ReplBufferData
impl Clone for ReplBufferData
Source§fn clone(&self) -> ReplBufferData
fn clone(&self) -> ReplBufferData
Returns a copy 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 ReplBufferData
impl Debug for ReplBufferData
Source§impl Ord for ReplBufferData
impl Ord for ReplBufferData
Implement Ord.
Source§impl PartialEq for ReplBufferData
impl PartialEq for ReplBufferData
Implement PartialEq.
Source§impl PartialOrd for ReplBufferData
impl PartialOrd for ReplBufferData
Implement PartialOrd.
impl Eq for ReplBufferData
Implement Eq.
Auto Trait Implementations§
impl Freeze for ReplBufferData
impl RefUnwindSafe for ReplBufferData
impl Send for ReplBufferData
impl Sync for ReplBufferData
impl Unpin for ReplBufferData
impl UnwindSafe for ReplBufferData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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