pub struct ObservationDiff {
pub epoch_before: u64,
pub epoch_after: u64,
pub url_before: String,
pub url_after: String,
pub document_replaced: bool,
pub added: Vec<ObservedNode>,
pub removed: Vec<String>,
pub changed: Vec<NodeChange>,
}Expand description
What one action changed. Elements are matched by selector; an element with no selector (it cannot be targeted by ref) is not part of the diff.
Fields§
§epoch_before: u64§epoch_after: u64§url_before: String§url_after: String§document_replaced: boolThe main document was replaced (a navigation or reload). Every earlier ref is refused.
added: Vec<ObservedNode>Elements that were not there before, with their refs in epoch_after.
removed: Vec<String>Selectors of elements that are gone.
changed: Vec<NodeChange>Implementations§
Trait Implementations§
Source§impl Clone for ObservationDiff
impl Clone for ObservationDiff
Source§impl Debug for ObservationDiff
impl Debug for ObservationDiff
Auto Trait Implementations§
impl Forget for ObservationDiff
impl Freeze for ObservationDiffwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ObservedNode>: Freeze,
PhantomData<String>: Freeze,
PhantomData<NodeChange>: Freeze,
impl Move for ObservationDiff
impl RefUnwindSafe for ObservationDiff
impl Send for ObservationDiffwhere
RawVecInner: Send,
impl Sync for ObservationDiffwhere
RawVecInner: Sync,
impl Unpin for ObservationDiff
impl UnsafeUnpin for ObservationDiffwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ObservedNode>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<NodeChange>: UnsafeUnpin,
impl UnwindSafe for ObservationDiffwhere
RawVecInner: UnwindSafe,
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