pub enum LogSyncEvent<E> {
MetricsExchanged {
metrics: LogSyncMetrics,
},
OperationReceived {
operation: Box<Operation<E>>,
metrics: LogSyncMetrics,
},
}Expand description
Events emitted from log sync sessions.
Variants§
MetricsExchanged
We have calculated and sent the estimated bytes and operations to be sent during this sync session and received the remotes’ estimates.
This is the first event to occur and will only be sent once.
Fields
§
metrics: LogSyncMetricsOperationReceived
An operation has been received from the remote.
Trait Implementations§
Source§impl<E: Clone> Clone for LogSyncEvent<E>
impl<E: Clone> Clone for LogSyncEvent<E>
Source§fn clone(&self) -> LogSyncEvent<E>
fn clone(&self) -> LogSyncEvent<E>
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<E: Debug> Debug for LogSyncEvent<E>
impl<E: Debug> Debug for LogSyncEvent<E>
Source§impl<E> From<LogSyncEvent<E>> for TopicLogSyncEvent<E>
impl<E> From<LogSyncEvent<E>> for TopicLogSyncEvent<E>
Source§fn from(event: LogSyncEvent<E>) -> Self
fn from(event: LogSyncEvent<E>) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for LogSyncEvent<E>
impl<E: PartialEq> PartialEq for LogSyncEvent<E>
Source§fn eq(&self, other: &LogSyncEvent<E>) -> bool
fn eq(&self, other: &LogSyncEvent<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: PartialEq> StructuralPartialEq for LogSyncEvent<E>
Auto Trait Implementations§
impl<E> Freeze for LogSyncEvent<E>
impl<E> RefUnwindSafe for LogSyncEvent<E>where
E: RefUnwindSafe,
impl<E> Send for LogSyncEvent<E>where
E: Send,
impl<E> Sync for LogSyncEvent<E>where
E: Sync,
impl<E> Unpin for LogSyncEvent<E>
impl<E> UnsafeUnpin for LogSyncEvent<E>
impl<E> UnwindSafe for LogSyncEvent<E>where
E: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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