pub struct CursorRow {
pub source_name: String,
pub value: Option<Value>,
pub version: i64,
pub updated_at: String,
pub age_seconds: f64,
}Expand description
One _fraiseql_source_cursor row: a source’s durable watermark and its
staleness, computed against the database clock so there is no app↔DB skew.
Fields§
§source_name: StringThe cursor key — the source name the runtime poller advances under.
value: Option<Value>The opaque cursor value, or None if the row exists but holds SQL NULL.
version: i64The compare-and-swap generation counter.
updated_at: StringLast-advance timestamp, rendered as text (updated_at::text).
age_seconds: f64Seconds since the last advance, from the database clock (the staleness/lag).
Auto Trait Implementations§
impl Freeze for CursorRow
impl RefUnwindSafe for CursorRow
impl Send for CursorRow
impl Sync for CursorRow
impl Unpin for CursorRow
impl UnsafeUnpin for CursorRow
impl UnwindSafe for CursorRow
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> 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 more