pub struct Offset(pub i64);Expand description
A record offset within a topic partition’s log. KIP wire type: int64.
The type is ordered, so it works as a BTreeMap key and in watermark
comparisons. Advance or rewind by a count with offset + n or offset - n,
where n: i64. The delta between two offsets is a.0 - b.0. The addition
of two offsets has no meaning, and this crate does not implement it.
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl AddAssign<i64> for Offset
impl AddAssign<i64> for Offset
Source§fn add_assign(&mut self, count: i64)
fn add_assign(&mut self, count: i64)
Performs the
+= operation. Read moreimpl Copy for Offset
Source§impl<'de> Deserialize<'de> for Offset
impl<'de> Deserialize<'de> for Offset
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
impl Eq for Offset
Source§impl Ord for Offset
impl Ord for Offset
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Offset
impl PartialOrd for Offset
Source§impl PartialOrd<Offset> for i64
impl PartialOrd<Offset> for i64
Source§impl PartialOrd<i64> for Offset
impl PartialOrd<i64> for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnsafeUnpin for Offset
impl UnwindSafe for Offset
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