#[repr(C)]pub struct YXmlEvent {
pub txn: *const Transaction,
/* private fields */
}Expand description
Event pushed into callbacks registered with yxmlelem_observe function. It contains
all attribute changes made within a scope of corresponding transaction
(see: yxmlelem_event_keys) as well as child XML nodes changes (see: yxmlelem_event_delta)
and navigation data used to identify a YXmlElement instance which triggered this event.
Fields
txn: *const TransactionMethods from Deref<Target = 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) -> VecDeque<PathSegment, Global>
pub fn path(&self) -> VecDeque<PathSegment, Global>
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, RandomState>
pub fn added(&self, txn: &Transaction) -> &HashSet<ID, RandomState>
Returns a collection of block identifiers that have been added within a bounds of current transaction.
sourcepub fn deleted(&self, txn: &Transaction) -> &HashSet<ID, RandomState>
pub fn deleted(&self, txn: &Transaction) -> &HashSet<ID, RandomState>
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, RandomState>
pub fn keys(
&self,
txn: &Transaction
) -> &HashMap<Rc<str>, EntryChange, RandomState>
Returns a summary of attribute changes made over corresponding XmlElement collection within bounds of current transaction.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for YXmlEvent
impl !Send for YXmlEvent
impl !Sync for YXmlEvent
impl Unpin for YXmlEvent
impl !UnwindSafe for YXmlEvent
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