Struct sycamore_router::HistoryIntegration
source · [−]pub struct HistoryIntegration { /* private fields */ }
Expand description
A router integration that uses the HTML5 History API to keep the UI in sync with the URL.
Implementations
sourceimpl HistoryIntegration
impl HistoryIntegration
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new HistoryIntegration
.
Trait Implementations
sourceimpl Debug for HistoryIntegration
impl Debug for HistoryIntegration
sourceimpl Default for HistoryIntegration
impl Default for HistoryIntegration
sourcefn default() -> HistoryIntegration
fn default() -> HistoryIntegration
Returns the “default value” for a type. Read more
sourceimpl Integration for HistoryIntegration
impl Integration for HistoryIntegration
sourcefn current_pathname(&self) -> String
fn current_pathname(&self) -> String
Get the current pathname.
sourcefn on_popstate(&self, f: Box<dyn FnMut()>)
fn on_popstate(&self, f: Box<dyn FnMut()>)
Add a callback for listening to the popstate
event.
sourcefn click_handler(&self) -> Box<dyn Fn(Event)>
fn click_handler(&self) -> Box<dyn Fn(Event)>
Get the click handler that is run when links are clicked.
Auto Trait Implementations
impl RefUnwindSafe for HistoryIntegration
impl Send for HistoryIntegration
impl Sync for HistoryIntegration
impl Unpin for HistoryIntegration
impl UnwindSafe for HistoryIntegration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more