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

Required Methods§

source

fn GetLength(&self) -> Result<u32, Error>

source

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

source

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

source

fn Back(&self) -> Result<(), Error>

source

fn Forward(&self) -> Result<(), Error>

source

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

source

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

Implementors§