pub struct HostMutation {
pub target_id: String,
pub op: HostMutationOp,
}Expand description
One host-driven DOM change, named in engine-neutral terms.
This is the non-script mutation entry: a Rust host changes the loaded
document directly, the way Cambium’s Rootstock drives its own DOM through
LayoutDomMut, without a script engine in the picture. Sessions translate
it into their own node ids and their own drain_mutations / restyle path;
nothing about node identity, dirty bits, or style crosses this boundary.
The target is an element’s id attribute rather than an opaque node
handle, because a host that did not build the document has no other stable
name for one of its elements.
Fields§
§target_id: StringThe value of the target element’s id attribute.
op: HostMutationOpImplementations§
Source§impl HostMutation
impl HostMutation
pub fn new(target_id: impl Into<String>, op: HostMutationOp) -> Self
Trait Implementations§
Source§impl Clone for HostMutation
impl Clone for HostMutation
Source§impl Debug for HostMutation
impl Debug for HostMutation
impl Eq for HostMutation
Source§impl PartialEq for HostMutation
impl PartialEq for HostMutation
impl StructuralPartialEq for HostMutation
Auto Trait Implementations§
impl Forget for HostMutation
impl Freeze for HostMutation
impl RefUnwindSafe for HostMutation
impl Send for HostMutation
impl Sync for HostMutation
impl Unpin for HostMutation
impl UnsafeUnpin for HostMutation
impl UnwindSafe for HostMutation
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