Struct yew_nested_router::History
source · pub struct History;
Implementations§
source§impl History
impl History
sourcepub fn listener<F: Fn() + 'static>(f: F) -> HistoryListener
pub fn listener<F: Fn() + 'static>(f: F) -> HistoryListener
Subscribe to events of the browser history.
This will receive events when popping items from the stack, as well as changes triggered by calling
History::push_state
.
sourcepub fn push_state(state: JsValue, url: &str) -> Result<(), JsValue>
pub fn push_state(state: JsValue, url: &str) -> Result<(), JsValue>
Push a new state to the history stack.
This will send out events and update the browser’s history. Ultimately calling
web_sys::History::push_state_with_url
.
Auto Trait Implementations§
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnwindSafe for History
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.