pub struct StreamPosition {
pub seq_num: u64,
pub timestamp: u64,
}๐Deprecated since 0.21.1: This crate has been renamed to
s2-sdk. Please update your Cargo.toml to use s2-sdk instead.Expand description
Position of a record in a stream.
Fieldsยง
ยงseq_num: u64๐Deprecated since 0.21.1: This crate has been renamed to
s2-sdk. Please update your Cargo.toml to use s2-sdk instead.Sequence number assigned by the service.
timestamp: u64๐Deprecated since 0.21.1: This crate has been renamed to
s2-sdk. Please update your Cargo.toml to use s2-sdk instead.Timestamp, which may be user-specified or assigned by the service. If it is assigned by the service, it will represent milliseconds since Unix epoch.
Trait Implementationsยง
Sourceยงimpl Clone for StreamPosition
impl Clone for StreamPosition
Sourceยงfn clone(&self) -> StreamPosition
fn clone(&self) -> StreamPosition
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 StreamPosition
impl Debug for StreamPosition
Sourceยงimpl PartialEq for StreamPosition
impl PartialEq for StreamPosition
impl Eq for StreamPosition
impl StructuralPartialEq for StreamPosition
Auto Trait Implementationsยง
impl Freeze for StreamPosition
impl RefUnwindSafe for StreamPosition
impl Send for StreamPosition
impl Sync for StreamPosition
impl Unpin for StreamPosition
impl UnwindSafe for StreamPosition
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,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Sourceยงfn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request