[−][src]Struct roa::router::RouteEndpoint
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]
fn handle<'async_trait>(
self: Arc<Self>,
ctx: Context<S>,
_next: Next
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
self: Arc<Self>,
ctx: Context<S>,
_next: Next
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>> where
Self: 'async_trait,
fn end<'async_trait>(
self: Arc<Self>,
ctx: Context<S>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
Self: 'async_trait,
[src]
self: Arc<Self>,
ctx: Context<S>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
Self: 'async_trait,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
F: 'static + Future<Output = Result<(), Error>> + Send,
S: State,
T: 'static + Sync + Send + Fn(Context<S>, Box<dyn FnOnce() + 'static + Sync + Send>) -> F,
fn handle<'async_trait>(
self: Arc<T>,
ctx: Context<S>,
next: Box<dyn FnOnce() + 'static + Sync + Send>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
T: 'async_trait,
[src]
self: Arc<T>,
ctx: Context<S>,
next: Box<dyn FnOnce() + 'static + Sync + Send>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
T: 'async_trait,
fn end<'async_trait>(
self: Arc<Self>,
ctx: Context<S>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
Self: 'async_trait,
[src]
self: Arc<Self>,
ctx: Context<S>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
Self: 'async_trait,
impl<T> State for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,