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§

source

fn Observe( &self, target: &Node, options: &MutationObserverInit, ) -> Result<(), Error>

source

fn Disconnect(&self)

source

fn TakeRecords(&self) -> Vec<Root<Dom<MutationRecord>>>

source

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.

Implementors§