pub struct XmlEvent { /* private fields */ }Expand description
Event generated by XmlElement::observe method. Emitted during transaction commit phase.
Implementations
sourceimpl XmlEvent
impl XmlEvent
sourcepub fn children_changed(&self) -> bool
pub fn children_changed(&self) -> bool
True if any child XML nodes have been changed within bounds of current transaction.
sourcepub fn target(&self) -> &XmlElement
pub fn target(&self) -> &XmlElement
Returns a XmlElement instance which emitted this event.
sourcepub fn path(&self) -> Path
pub fn path(&self) -> Path
Returns a path from root type down to XmlElement instance which emitted this event.
sourcepub fn delta(&self, txn: &Transaction) -> &[Change]
pub fn delta(&self, txn: &Transaction) -> &[Change]
Returns a summary of XML child nodes changed within corresponding XmlElement collection within bounds of current transaction.
sourcepub fn added(&self, txn: &Transaction) -> &HashSet<ID>
pub fn added(&self, txn: &Transaction) -> &HashSet<ID>
Returns a collection of block identifiers that have been added within a bounds of current transaction.
sourcepub fn deleted(&self, txn: &Transaction) -> &HashSet<ID>
pub fn deleted(&self, txn: &Transaction) -> &HashSet<ID>
Returns a collection of block identifiers that have been removed within a bounds of current transaction.
sourcepub fn keys(&self, txn: &Transaction) -> &HashMap<Rc<str>, EntryChange>
pub fn keys(&self, txn: &Transaction) -> &HashMap<Rc<str>, EntryChange>
Returns a summary of attribute changes made over corresponding XmlElement collection within bounds of current transaction.
Auto Trait Implementations
impl !RefUnwindSafe for XmlEvent
impl !Send for XmlEvent
impl !Sync for XmlEvent
impl Unpin for XmlEvent
impl !UnwindSafe for XmlEvent
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