Skip to main content

PageRerunRoute

Struct PageRerunRoute 

Source
pub struct PageRerunRoute { /* private fields */ }
Available on crate feature router only.
Expand description

A Route that re-runs a page with the signal values a client sends.

The browser runtime posts to the route with the page’s path and query appended, and the route rewrites the request into a plain GET for the page with the signal values on its request context, so the page runs through its layouts and guards as if the client had requested it, and signal resumes from the values sent.

A page path is matched by a catch-all segment, which needs at least one segment, so the root page has a route of its own at the bare prefix.

Implementations§

Source§

impl PageRerunRoute

Source

pub fn root() -> Self

The route re-running the root page.

Source

pub fn nested() -> Self

The route re-running every page below the root.

Trait Implementations§

Source§

impl Route for PageRerunRoute

Source§

fn id(&self) -> RouteId

The identity of this route’s handler.
Source§

fn methods(&self) -> Methods<'_>

The HTTP methods this route responds to.
Source§

fn path(&self) -> &Path

The URL path this route handles.
Source§

fn handle<'cx>(&'cx self, cx: &'cx Cx, body: Body) -> RouteFuture<'cx>

Handles a request, producing a response.
Source§

fn is_current(&self, cx: &Cx) -> bool

Returns whether this route handles the current request. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.