[][src]Struct roa::router::RouteEndpoint

pub struct RouteEndpoint<S: State>(_);

A endpoint to handle request by uri path and http method.

  • Throw 404 NOT FOUND when path is not matched.
  • Throw 405 METHOD NOT ALLOWED when method is not allowed.

Trait Implementations

impl<S: State> Default for RouteEndpoint<S>[src]

impl<S: State> Middleware<S> for RouteEndpoint<S>[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for RouteEndpoint<S>

impl<S> Send for RouteEndpoint<S>

impl<S> Sync for RouteEndpoint<S>

impl<S> Unpin for RouteEndpoint<S>

impl<S> !UnwindSafe for RouteEndpoint<S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, F, T> Middleware<S> for T where
    F: 'static + Future<Output = Result<(), Error>> + Send,
    S: State,
    T: 'static + Sync + Send + Fn(Context<S>, Box<dyn FnOnce() + 'static + Sync + Send>) -> F, 
[src]

impl<T> State for T where
    T: 'static + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.