pub struct AcquiredRecords {
pub first_offset: i64,
pub last_offset: i64,
pub delivery_count: i16,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§first_offset: i64The earliest offset in this batch of acquired records.
last_offset: i64The last offset of this batch of acquired records.
delivery_count: i16The delivery count of this batch of acquired records.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AcquiredRecords
impl AcquiredRecords
pub fn with_first_offset(self, value: i64) -> Self
pub fn with_last_offset(self, value: i64) -> 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 AcquiredRecords
impl Clone for AcquiredRecords
Source§fn clone(&self) -> AcquiredRecords
fn clone(&self) -> AcquiredRecords
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 AcquiredRecords
impl Debug for AcquiredRecords
Source§impl Default for AcquiredRecords
impl Default for AcquiredRecords
Source§impl PartialEq for AcquiredRecords
impl PartialEq for AcquiredRecords
Source§fn eq(&self, other: &AcquiredRecords) -> bool
fn eq(&self, other: &AcquiredRecords) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AcquiredRecords
Auto Trait Implementations§
impl Freeze for AcquiredRecords
impl RefUnwindSafe for AcquiredRecords
impl Send for AcquiredRecords
impl Sync for AcquiredRecords
impl Unpin for AcquiredRecords
impl UnsafeUnpin for AcquiredRecords
impl UnwindSafe for AcquiredRecords
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