Struct yrs::types::Event[][src]

pub struct Event { /* fields omitted */ }
Expand description

An event type, triggered upon transaction commit and passed over to function callbacks registered using observe method on corresponding shared data types.

Implementations

Returns enum containing a reference to a shared data type on which current event has been fired.

Returns a path From root level type down to a current shared data type being a Self::target.

Returns all changes done upon map component of a current shared data type (which can be accessed using Self::target) within a bounds of corresponding transaction txn. These changes are done in result of operations made on Map data type or attribute changes of XmlElement and XmlText types.

Returns identifiers of all new blocks inserted within a bounds of current transaction txn.

Returns identifiers of all new blocks tombstoned within a bounds of current transaction txn.

Returns collection of all changes done over an array component of a current shared data type (which can be accessed using Self::target). These changes are usually done in result of operations done on Array and Text/XmlText types, but also whenever XmlElement children nodes list is modified.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.