Struct XmlEvent
pub struct XmlEvent { /* private fields */ }Expand description
Event generated by [XmlElement::observe] method. Emitted during transaction commit phase.
Implementations§
§impl XmlEvent
impl XmlEvent
pub 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.
pub fn path(&self) -> VecDeque<PathSegment>
pub fn path(&self) -> VecDeque<PathSegment>
Returns a path from root type down to [XmlElement] instance which emitted this event.
pub fn delta(&self, txn: &TransactionMut<'_>) -> &[Change]
pub fn delta(&self, txn: &TransactionMut<'_>) -> &[Change]
Returns a summary of XML child nodes changed within corresponding [XmlElement] collection within bounds of current transaction.
pub fn added(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
pub fn added(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
Returns a collection of block identifiers that have been added within a bounds of current transaction.
pub fn deleted(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
pub fn deleted(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
Returns a collection of block identifiers that have been removed within a bounds of current transaction.
pub fn keys(&self, txn: &TransactionMut<'_>) -> &HashMap<Arc<str>, EntryChange>
pub fn keys(&self, txn: &TransactionMut<'_>) -> &HashMap<Arc<str>, EntryChange>
Returns a summary of attribute changes made over corresponding [XmlElement] collection within bounds of current transaction.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for XmlEvent
impl !RefUnwindSafe for XmlEvent
impl Send for XmlEvent
impl !Sync for XmlEvent
impl Unpin for XmlEvent
impl !UnwindSafe for XmlEvent
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more