#[repr(C)]pub struct YMapEvent {
pub txn: *const Transaction,
/* 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.
Fields
txn: *const TransactionMethods from Deref<Target = MapEvent>
sourcepub fn path(&self) -> VecDeque<PathSegment, Global>
pub fn path(&self) -> VecDeque<PathSegment, Global>
Returns a path from root type down to Map instance which emitted this event.
sourcepub fn keys(
&self,
txn: &Transaction
) -> &HashMap<Rc<str>, EntryChange, RandomState>
pub fn keys(
&self,
txn: &Transaction
) -> &HashMap<Rc<str>, EntryChange, RandomState>
Returns a summary of key-value changes made over corresponding Map collection within bounds of current transaction.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for YMapEvent
impl !Send for YMapEvent
impl !Sync for YMapEvent
impl Unpin for YMapEvent
impl !UnwindSafe for YMapEvent
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