pub struct ReplicateBatch {
pub session_id: u64,
pub batch_seq: u64,
pub fragment: u32,
pub ops: Vec<ReplicateOp>,
pub required_ack_level: i32,
}Fields§
§session_id: u64§batch_seq: u64§fragment: u32§ops: Vec<ReplicateOp>§required_ack_level: i32Minimum fence the sender requires before this tracked batch may retire. Ignored for untracked reconciliation batches.
Implementations§
Source§impl ReplicateBatch
impl ReplicateBatch
Sourcepub fn required_ack_level(&self) -> ReplicationAckLevel
pub fn required_ack_level(&self) -> ReplicationAckLevel
Returns the enum value of required_ack_level, or the default if the field is set to an invalid enum value.
Sourcepub fn set_required_ack_level(&mut self, value: ReplicationAckLevel)
pub fn set_required_ack_level(&mut self, value: ReplicationAckLevel)
Sets required_ack_level to the provided enum value.
Trait Implementations§
Source§impl Clone for ReplicateBatch
impl Clone for ReplicateBatch
Source§impl Debug for ReplicateBatch
impl Debug for ReplicateBatch
Source§impl Default for ReplicateBatch
impl Default for ReplicateBatch
Source§impl Message for ReplicateBatch
impl Message for ReplicateBatch
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ReplicateBatch
impl PartialEq for ReplicateBatch
impl StructuralPartialEq for ReplicateBatch
Auto Trait Implementations§
impl Freeze for ReplicateBatch
impl RefUnwindSafe for ReplicateBatch
impl Send for ReplicateBatch
impl Sync for ReplicateBatch
impl Unpin for ReplicateBatch
impl UnsafeUnpin for ReplicateBatch
impl UnwindSafe for ReplicateBatch
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