#[repr(C)]pub struct YMapEvent { /* private fields */ }
Expand description
Event pushed into callbacks registered with ymap_observe
function. It contains all
key-value changes made within a scope of corresponding transaction (see: ymap_event_keys
) as
well as navigation data used to identify a YMap
instance which triggered this event.
Methods from Deref<Target = MapEvent>§
sourcepub fn path(&self) -> VecDeque<PathSegment>
pub fn path(&self) -> VecDeque<PathSegment>
Returns a path from root type down to Map instance which emitted this event.
sourcepub fn keys(&self, txn: &TransactionMut<'_>) -> &HashMap<Arc<str>, EntryChange>
pub fn keys(&self, txn: &TransactionMut<'_>) -> &HashMap<Arc<str>, EntryChange>
Returns a summary of key-value changes made over corresponding Map collection within bounds of current transaction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YMapEvent
impl !RefUnwindSafe for YMapEvent
impl !Send for YMapEvent
impl !Sync for YMapEvent
impl Unpin for YMapEvent
impl !UnwindSafe for YMapEvent
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