pub struct Event<M> { /* private fields */ }
Implementations§
source§impl<M> Event<M>
impl<M> Event<M>
pub fn meta(&self) -> &M
pub fn meta_mut(&mut self) -> &mut M
sourcepub fn has_changed<T: AsRef<Branch>>(&self, target: &T) -> bool
pub fn has_changed<T: AsRef<Branch>>(&self, target: &T) -> bool
Checks if given shared collection has changed in the scope of currently notified update.
sourcepub fn origin(&self) -> Option<&Origin>
pub fn origin(&self) -> Option<&Origin>
Returns a transaction origin related to this update notification.
sourcepub fn kind(&self) -> EventKind
pub fn kind(&self) -> EventKind
Returns an enum informing if current update is result of undo or redo operation.
sourcepub fn changed_parent_types(&self) -> &[BranchPtr]
pub fn changed_parent_types(&self) -> &[BranchPtr]
Returns info about all changed shared collections.
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Event<M>where
M: Freeze,
impl<M> !RefUnwindSafe for Event<M>
impl<M> !Send for Event<M>
impl<M> !Sync for Event<M>
impl<M> Unpin for Event<M>where
M: Unpin,
impl<M> !UnwindSafe for Event<M>
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