Struct yrs::YAfterTransactionEvent
source · #[repr(C)]pub struct YAfterTransactionEvent {
pub before_state: YStateVector,
pub after_state: YStateVector,
pub delete_set: YDeleteSet,
}
Expand description
Event generated for callbacks subscribed using ydoc_observe_after_transaction
. It contains
snapshot of changes made within any committed transaction.
Fields§
§before_state: YStateVector
Descriptor of a document state at the moment of creating the transaction.
after_state: YStateVector
Descriptor of a document state at the moment of committing the transaction.
delete_set: YDeleteSet
Information about all items deleted within the scope of a transaction.
Auto Trait Implementations§
impl Freeze for YAfterTransactionEvent
impl RefUnwindSafe for YAfterTransactionEvent
impl !Send for YAfterTransactionEvent
impl !Sync for YAfterTransactionEvent
impl Unpin for YAfterTransactionEvent
impl UnwindSafe for YAfterTransactionEvent
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