pub struct RouteInfoAtomic<'a, G: Html> {
pub path: String,
pub template: &'a Template<G>,
pub was_incremental_match: bool,
pub locale: String,
}
Expand description
Information about a route, which, combined with error pages and a client-side translations manager, allows the initialization of the app shell and the rendering of a page.
This version is designed for multithreaded scenarios, and stores a reference to a template rather than an Rc<Template<G>>
. That means this is not compatible
with Perseus on the client-side, only on the server-side.
Fields
path: String
The actual path of the route.
template: &'a Template<G>
The template that will be used. The app shell will derive props and a translator to pass to the template function.
was_incremental_match: bool
Whether or not the matched page was incrementally-generated at runtime (if it has been yet). If this is true
, the server will
use a mutable store rather than an immutable one. See the book for more details.
locale: String
The locale for the template to be rendered in.
Trait Implementations
Auto Trait Implementations
impl<'a, G> !RefUnwindSafe for RouteInfoAtomic<'a, G>
impl<'a, G> Send for RouteInfoAtomic<'a, G>
impl<'a, G> Sync for RouteInfoAtomic<'a, G>
impl<'a, G> Unpin for RouteInfoAtomic<'a, G>
impl<'a, G> !UnwindSafe for RouteInfoAtomic<'a, G>
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