pub struct StateBatch {
pub first_offset: i64,
pub last_offset: i64,
pub delivery_state: i8,
pub delivery_count: i16,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§first_offset: i64The first offset of this state batch.
last_offset: i64The last offset of this state batch.
delivery_state: i8The delivery state - 0:Available,2:Acked,4:Archived.
delivery_count: i16The delivery count.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl StateBatch
impl StateBatch
pub fn with_first_offset(self, value: i64) -> Self
pub fn with_last_offset(self, value: i64) -> Self
pub fn with_delivery_state(self, value: i8) -> Self
pub fn with_delivery_count(self, value: i16) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for StateBatch
impl Clone for StateBatch
Source§fn clone(&self) -> StateBatch
fn clone(&self) -> StateBatch
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 StateBatch
impl Debug for StateBatch
Source§impl Default for StateBatch
impl Default for StateBatch
Source§impl PartialEq for StateBatch
impl PartialEq for StateBatch
Source§fn eq(&self, other: &StateBatch) -> bool
fn eq(&self, other: &StateBatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StateBatch
Auto Trait Implementations§
impl Freeze for StateBatch
impl RefUnwindSafe for StateBatch
impl Send for StateBatch
impl Sync for StateBatch
impl Unpin for StateBatch
impl UnsafeUnpin for StateBatch
impl UnwindSafe for StateBatch
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