pub struct SourceWindow {
pub from: DateTime<Utc>,
pub to: DateTime<Utc>,
pub source_rows_read: u64,
pub dropped_times: Vec<DateTime<Utc>>,
}Expand description
A completeness claim over one stream: the readings sent alongside are the COMPLETE content of
the source for this stream over [from, to), read from source_rows_read source rows. The
server diffs stored content against the payload and converges (new / changed / withdrawn);
without a window the request is a bare append, exactly the old semantics.
Fields§
§from: DateTime<Utc>§to: DateTime<Utc>§source_rows_read: u64Source rows scanned to produce the payload. An empty payload over a window the store holds readings for is refused server-side, so a decode failure cannot read as a source deletion.
dropped_times: Vec<DateTime<Utc>>Instants the backend saw but could not carry (cell decode failures). The server retains stored rows at these keys rather than withdrawing them.
Trait Implementations§
Source§impl Clone for SourceWindow
impl Clone for SourceWindow
Source§fn clone(&self) -> SourceWindow
fn clone(&self) -> SourceWindow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourceWindow
impl Debug for SourceWindow
Source§impl<'de> Deserialize<'de> for SourceWindow
impl<'de> Deserialize<'de> for SourceWindow
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
Auto Trait Implementations§
impl Freeze for SourceWindow
impl RefUnwindSafe for SourceWindow
impl Send for SourceWindow
impl Sync for SourceWindow
impl Unpin for SourceWindow
impl UnsafeUnpin for SourceWindow
impl UnwindSafe for SourceWindow
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