Enum web_sys::NavigationType
source · [−]pub enum NavigationType {
Navigate,
Reload,
BackForward,
Prerender,
// some variants omitted
}
Expand description
The NavigationType
enum.
This API requires the following crate features to be activated: NavigationType
Variants
Navigate
Reload
BackForward
Prerender
Implementations
pub fn from_js_value(obj: &JsValue) -> Option<NavigationType>
Trait Implementations
sourcefn clone(&self) -> NavigationType
fn clone(&self) -> NavigationType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourcefn from(obj: NavigationType) -> JsValue
fn from(obj: NavigationType) -> JsValue
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more