pub struct Receiver { /* private fields */ }Expand description
The reference receiver: holds the hierarchical view Schema (the shipped query
schema) and the reconstructed top-level list (root[""]).
Implementations§
Source§impl Receiver
impl Receiver
Sourcepub fn new(schema: Schema) -> Receiver
pub fn new(schema: Schema) -> Receiver
A fresh receiver over the given hierarchical view schema (the same Schema the
sender’s View was built with — its per-level sort is the comparator input and
rel_child(slot) is the in-view gate).
Sourcepub fn apply(&mut self, change: &FlatChange)
pub fn apply(&mut self, change: &FlatChange)
Apply one FlatChange: descend its path, then fold the op at the reached
level. Panics on an inconsistent stream (mirrors the differ’s “node does not
exist” — view.rs:450).
Sourcepub fn apply_all(&mut self, changes: &[FlatChange])
pub fn apply_all(&mut self, changes: &[FlatChange])
Apply a batch in order (the per-transaction delta, or the hydrate snapshot).
Order is significant — see FLAT-CHANGES-DESIGN.md §5.4.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Receiver
impl RefUnwindSafe for Receiver
impl Send for Receiver
impl Sync for Receiver
impl Unpin for Receiver
impl UnsafeUnpin for Receiver
impl UnwindSafe for Receiver
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