pub enum ReplNetworkConfig {
Custom {
queue_length: u64,
expiry_time: Option<Seconds>,
sync_wait_time: Seconds,
consistency_model: ConsistencyModel,
data_aging_period: Seconds,
},
Default,
}Expand description
Enum containing configurations for replication.
Variants§
Custom
A custom configuration.
Fields
§
expiry_time: Option<Seconds>Expiry time of data in the buffer if the buffer is full. Set to None for no expiry.
§
sync_wait_time: SecondsEpoch to wait before attempting the next network synchronization of data in the buffer.
§
consistency_model: ConsistencyModelThe data consistency model to be supported by the node. This must be uniform across all nodes to prevent undefined behaviour.
Default
A default configuration: queue_length = 100, expiry_time = 60 seconds,
sync_wait_time = 5 seconds, consistency_model: Eventual, data_wait_period = 5
seconds.
Trait Implementations§
Source§impl Clone for ReplNetworkConfig
impl Clone for ReplNetworkConfig
Source§fn clone(&self) -> ReplNetworkConfig
fn clone(&self) -> ReplNetworkConfig
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 moreAuto Trait Implementations§
impl Freeze for ReplNetworkConfig
impl RefUnwindSafe for ReplNetworkConfig
impl Send for ReplNetworkConfig
impl Sync for ReplNetworkConfig
impl Unpin for ReplNetworkConfig
impl UnwindSafe for ReplNetworkConfig
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<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