pub enum ReplicationSendPolicy {
Immediate,
Batch,
}Expand description
Native replication send policy.
Variants§
Immediate
Flush each mutation as a one-record batch.
Batch
Accumulate mutations until a record, byte, or delay threshold is reached.
Trait Implementations§
Source§impl Clone for ReplicationSendPolicy
impl Clone for ReplicationSendPolicy
Source§fn clone(&self) -> ReplicationSendPolicy
fn clone(&self) -> ReplicationSendPolicy
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 ReplicationSendPolicy
impl Debug for ReplicationSendPolicy
Source§impl Default for ReplicationSendPolicy
impl Default for ReplicationSendPolicy
Source§fn default() -> ReplicationSendPolicy
fn default() -> ReplicationSendPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReplicationSendPolicy
impl<'de> Deserialize<'de> for ReplicationSendPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReplicationSendPolicy
impl PartialEq for ReplicationSendPolicy
Source§fn eq(&self, other: &ReplicationSendPolicy) -> bool
fn eq(&self, other: &ReplicationSendPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReplicationSendPolicy
impl Serialize for ReplicationSendPolicy
impl Copy for ReplicationSendPolicy
impl Eq for ReplicationSendPolicy
impl StructuralPartialEq for ReplicationSendPolicy
Auto Trait Implementations§
impl Freeze for ReplicationSendPolicy
impl RefUnwindSafe for ReplicationSendPolicy
impl Send for ReplicationSendPolicy
impl Sync for ReplicationSendPolicy
impl Unpin for ReplicationSendPolicy
impl UnsafeUnpin for ReplicationSendPolicy
impl UnwindSafe for ReplicationSendPolicy
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