pub trait HistoryMethods<D: DomTypes> {
    // Required methods
    fn GetLength(&self) -> Fallible<u32>;
    fn GetState(
        &self,
        cx: SafeJSContext,
        retval: MutableHandleValue<'_>,
    ) -> Fallible<()>;
    fn Go(&self, delta: i32, _can_gc: CanGc) -> Fallible<()>;
    fn Back(&self) -> Fallible<()>;
    fn Forward(&self) -> Fallible<()>;
    fn PushState(
        &self,
        cx: SafeJSContext,
        data: HandleValue<'_>,
        title: DOMString,
        url: Option<USVString>,
    ) -> Fallible<()>;
    fn ReplaceState(
        &self,
        cx: SafeJSContext,
        data: HandleValue<'_>,
        title: DOMString,
        url: Option<USVString>,
    ) -> Fallible<()>;
}

Required Methods§

Source

fn GetLength(&self) -> Fallible<u32>

Source

fn GetState( &self, cx: SafeJSContext, retval: MutableHandleValue<'_>, ) -> Fallible<()>

Source

fn Go(&self, delta: i32, _can_gc: CanGc) -> Fallible<()>

Source

fn Back(&self) -> Fallible<()>

Source

fn Forward(&self) -> Fallible<()>

Source

fn PushState( &self, cx: SafeJSContext, data: HandleValue<'_>, title: DOMString, url: Option<USVString>, ) -> Fallible<()>

Source

fn ReplaceState( &self, cx: SafeJSContext, data: HandleValue<'_>, title: DOMString, url: Option<USVString>, ) -> Fallible<()>

Implementors§