Trait script::dom::bindings::codegen::Bindings::MutationObserverBinding::MutationObserver_Binding::MutationObserverMethods
source · pub trait MutationObserverMethods<D: DomTypes> {
// Required methods
fn Observe(
&self,
target: &Node,
options: &MutationObserverInit,
) -> Result<(), Error>;
fn Disconnect(&self);
fn TakeRecords(&self) -> Vec<Root<Dom<MutationRecord>>>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
callback: Rc<MutationCallback>,
) -> Result<Root<Dom<MutationObserver>>, Error>;
}
Required Methods§
fn Observe( &self, target: &Node, options: &MutationObserverInit, ) -> Result<(), Error>
fn Disconnect(&self)
fn TakeRecords(&self) -> Vec<Root<Dom<MutationRecord>>>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, callback: Rc<MutationCallback>, ) -> Result<Root<Dom<MutationObserver>>, Error>
Object Safety§
This trait is not object safe.