Struct dittolive_ditto::store::collections::event::CollectionsEvent
source · [−]pub struct CollectionsEvent {
pub is_initial: bool,
pub collections: Vec<Collection>,
pub old_collections: Vec<Collection>,
pub insertions: Box<[usize]>,
pub deletions: Box<[usize]>,
pub updates: Box<[usize]>,
pub moves: Vec<LiveQueryMove>,
}
Fields
is_initial: bool
collections: Vec<Collection>
old_collections: Vec<Collection>
insertions: Box<[usize]>
deletions: Box<[usize]>
updates: Box<[usize]>
moves: Vec<LiveQueryMove>
Implementations
sourceimpl CollectionsEvent
impl CollectionsEvent
pub fn initial(collections: Vec<Collection>) -> Self
pub fn update(
collections: Vec<Collection>,
old_collections: Vec<Collection>,
insertions: Box<[usize]>,
deletions: Box<[usize]>,
updates: Box<[usize]>,
moves: Vec<LiveQueryMove>
) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CollectionsEvent
impl Send for CollectionsEvent
impl Sync for CollectionsEvent
impl Unpin for CollectionsEvent
impl UnwindSafe for CollectionsEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more