pub trait HistoryMethods<D: DomTypes> {
// Required methods
fn GetLength(&self) -> Fallible<u32>;
fn GetState(
&self,
cx: &mut JSContext,
retval: MutableHandleValue<'_>,
) -> Fallible<()>;
fn Go(&self, cx: &mut JSContext, delta: i32) -> Fallible<()>;
fn Back(&self) -> Fallible<()>;
fn Forward(&self) -> Fallible<()>;
fn PushState(
&self,
cx: &mut JSContext,
data: HandleValue<'_>,
title: DOMString,
url: Option<USVString>,
) -> Fallible<()>;
fn ReplaceState(
&self,
cx: &mut JSContext,
data: HandleValue<'_>,
title: DOMString,
url: Option<USVString>,
) -> Fallible<()>;
}Required Methods§
fn GetLength(&self) -> Fallible<u32>
fn GetState( &self, cx: &mut JSContext, retval: MutableHandleValue<'_>, ) -> Fallible<()>
fn Go(&self, cx: &mut JSContext, delta: i32) -> Fallible<()>
fn Back(&self) -> Fallible<()>
fn Forward(&self) -> Fallible<()>
fn PushState( &self, cx: &mut JSContext, data: HandleValue<'_>, title: DOMString, url: Option<USVString>, ) -> Fallible<()>
fn ReplaceState( &self, cx: &mut JSContext, data: HandleValue<'_>, title: DOMString, url: Option<USVString>, ) -> Fallible<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".