pub struct FullstackHistory<H> { /* private fields */ }Expand description
A history provider for fullstack apps that is compatible with hydration.
Implementations§
Source§impl<H> FullstackHistory<H>
impl<H> FullstackHistory<H>
Sourcepub fn new_server(history: H) -> Selfwhere
H: History,
pub fn new_server(history: H) -> Selfwhere
H: History,
Create a new FullstackHistory with the given history and initial route.
Trait Implementations§
Source§impl<H: Clone> Clone for FullstackHistory<H>
impl<H: Clone> Clone for FullstackHistory<H>
Source§fn clone(&self) -> FullstackHistory<H>
fn clone(&self) -> FullstackHistory<H>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H: History> History for FullstackHistory<H>
impl<H: History> History for FullstackHistory<H>
Source§fn can_go_back(&self) -> bool
fn can_go_back(&self) -> bool
Check whether there is a previous page to navigate back to. Read more
Source§fn can_go_forward(&self) -> bool
fn can_go_forward(&self) -> bool
Check whether there is a future page to navigate forward to. Read more
Source§fn include_prevent_default(&self) -> bool
fn include_prevent_default(&self) -> bool
Whether the router should include the legacy prevent default attribute instead of the new
prevent default method. This should only be used by liveview.
Source§fn current_route(&self) -> String
fn current_route(&self) -> String
Get the path of the current URL. Read more
Source§fn go_forward(&self)
fn go_forward(&self)
Go forward to a future page. Read more
Auto Trait Implementations§
impl<H> !Freeze for FullstackHistory<H>
impl<H> !RefUnwindSafe for FullstackHistory<H>
impl<H> Send for FullstackHistory<H>where
H: Send,
impl<H> !Sync for FullstackHistory<H>
impl<H> Unpin for FullstackHistory<H>where
H: Unpin,
impl<H> UnwindSafe for FullstackHistory<H>where
H: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.