pub enum DeltaCursor {
Timestamp(i64),
Sequence(i64),
}Expand description
The cursor the delta filter selects on.
The server keeps two cursors side by side. The timestamp cursor
(visible_at) is second-granular and stays the filter for clients that
send no sequence cursor. The write-sequence cursor (sequence) is
server-assigned, strictly increasing per library, and exact. The request
picks the form: a non-zero sequence cursor means the sequence form, and
anything else falls back to the timestamp form.
Variants§
Timestamp(i64)
The timestamp cursor: visible_at >= value.
Sequence(i64)
The write-sequence cursor: sequence >= value.
Trait Implementations§
Source§impl Clone for DeltaCursor
impl Clone for DeltaCursor
impl Copy for DeltaCursor
Source§impl Debug for DeltaCursor
impl Debug for DeltaCursor
impl Eq for DeltaCursor
Source§impl PartialEq for DeltaCursor
impl PartialEq for DeltaCursor
impl StructuralPartialEq for DeltaCursor
Auto Trait Implementations§
impl Forget for DeltaCursor
impl Freeze for DeltaCursor
impl Move for DeltaCursor
impl RefUnwindSafe for DeltaCursor
impl Send for DeltaCursor
impl Sync for DeltaCursor
impl Unpin for DeltaCursor
impl UnsafeUnpin for DeltaCursor
impl UnwindSafe for DeltaCursor
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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