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§
Source§impl HistoryIntegration
impl HistoryIntegration
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new HistoryIntegration
.
Trait Implementations§
Source§impl Debug for HistoryIntegration
impl Debug for HistoryIntegration
Source§impl Default for HistoryIntegration
impl Default for HistoryIntegration
Source§fn default() -> HistoryIntegration
fn default() -> HistoryIntegration
Returns the “default value” for a type. Read more
Source§impl Integration for HistoryIntegration
impl Integration for HistoryIntegration
Source§fn current_pathname(&self) -> String
fn current_pathname(&self) -> String
Get the current pathname.
Source§fn on_popstate(&self, f: Box<dyn FnMut()>)
fn on_popstate(&self, f: Box<dyn FnMut()>)
Add a callback for listening to the
popstate
event.Source§fn click_handler(&self) -> Box<dyn Fn(MouseEvent)>
fn click_handler(&self) -> Box<dyn Fn(MouseEvent)>
Get the click handler that is run when links are clicked.
Auto Trait Implementations§
impl Freeze for HistoryIntegration
impl RefUnwindSafe for HistoryIntegration
impl Send for HistoryIntegration
impl Sync for HistoryIntegration
impl Unpin for HistoryIntegration
impl UnwindSafe for HistoryIntegration
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