pub struct OffsetSpan {
pub topic: String,
pub partition: i32,
pub start: i64,
pub end: i64,
}Expand description
A half-open range of source positions [start, end) on one topic partition.
Half-open so adjacency is exact: [0, 10) then [10, 20) are contiguous and
union-merge to [0, 20) with no off-by-one. end == start is the empty span.
Fields§
§topic: StringSource topic / stream name.
partition: i32Source partition (0 where the source is unpartitioned).
start: i64First position covered (inclusive).
end: i64One past the last position covered (exclusive).
Implementations§
Trait Implementations§
Source§impl Clone for OffsetSpan
impl Clone for OffsetSpan
Source§fn clone(&self) -> OffsetSpan
fn clone(&self) -> OffsetSpan
Returns a duplicate of the value. Read more
1.0.0 · 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 OffsetSpan
impl Debug for OffsetSpan
Source§impl PartialEq for OffsetSpan
impl PartialEq for OffsetSpan
impl Eq for OffsetSpan
impl StructuralPartialEq for OffsetSpan
Auto Trait Implementations§
impl Freeze for OffsetSpan
impl RefUnwindSafe for OffsetSpan
impl Send for OffsetSpan
impl Sync for OffsetSpan
impl Unpin for OffsetSpan
impl UnwindSafe for OffsetSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.