pub struct Cx { /* private fields */ }Expand description
The request context.
Pages, layouts, components, and routes can take cx: &Cx as an optional
parameter when they need request-scoped information; Topcoat passes it
automatically. Use it to read values registered for the request with the
app and request context helpers, such as app_context and
request_context.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Cx
impl !RefUnwindSafe for Cx
impl !UnwindSafe for Cx
impl Send for Cx
impl Sync for Cx
impl Unpin for Cx
impl UnsafeUnpin for Cx
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