pub struct EpochEndOffset {
pub epoch: i32,
pub end_offset: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§epoch: i32The largest epoch.
end_offset: i64The end offset of the epoch.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl EpochEndOffset
impl EpochEndOffset
pub fn with_epoch(self, value: i32) -> Self
pub fn with_end_offset(self, value: i64) -> 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 EpochEndOffset
impl Clone for EpochEndOffset
Source§fn clone(&self) -> EpochEndOffset
fn clone(&self) -> EpochEndOffset
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 EpochEndOffset
impl Debug for EpochEndOffset
Source§impl Default for EpochEndOffset
impl Default for EpochEndOffset
Source§impl PartialEq for EpochEndOffset
impl PartialEq for EpochEndOffset
Source§fn eq(&self, other: &EpochEndOffset) -> bool
fn eq(&self, other: &EpochEndOffset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EpochEndOffset
Auto Trait Implementations§
impl Freeze for EpochEndOffset
impl RefUnwindSafe for EpochEndOffset
impl Send for EpochEndOffset
impl Sync for EpochEndOffset
impl Unpin for EpochEndOffset
impl UnsafeUnpin for EpochEndOffset
impl UnwindSafe for EpochEndOffset
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