pub struct ArrayEvent { /* private fields */ }Expand description
Event generated by Array::observe method. Emitted during transaction commit phase.
Implementations
sourceimpl ArrayEvent
impl ArrayEvent
sourcepub fn path(&self) -> Path
pub fn path(&self) -> Path
Returns a path from root type down to [Text] instance which emitted this event.
sourcepub fn delta(&self, txn: &Transaction) -> &[Change]
pub fn delta(&self, txn: &Transaction) -> &[Change]
Returns summary of changes made over corresponding Array collection within a bounds of current transaction.
sourcepub fn inserts(&self, txn: &Transaction) -> &HashSet<ID>
pub fn inserts(&self, txn: &Transaction) -> &HashSet<ID>
Returns a collection of block identifiers that have been added within a bounds of current transaction.
sourcepub fn removes(&self, txn: &Transaction) -> &HashSet<ID>
pub fn removes(&self, txn: &Transaction) -> &HashSet<ID>
Returns a collection of block identifiers that have been removed within a bounds of current transaction.
Auto Trait Implementations
impl !RefUnwindSafe for ArrayEvent
impl !Send for ArrayEvent
impl !Sync for ArrayEvent
impl Unpin for ArrayEvent
impl !UnwindSafe for ArrayEvent
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