Struct viz_router::Route[][src]

pub struct Route { /* fields omitted */ }

Implementations

impl Route[src]

pub fn new(path: &str) -> Self[src]

pub fn path(self, path: &str) -> Self[src]

pub fn name(self, name: &str) -> Self[src]

pub fn carry(self, b: bool) -> Self[src]

pub fn mid<M>(self, m: M) -> Self where
    M: for<'m> Middleware<'m, Context, Output = Result<Response>>, 
[src]

pub fn guard<G>(self, g: G) -> Self where
    G: Into<Box<dyn Guard>>, 
[src]

pub fn on<F, T>(self, method: Method, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn get<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn post<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn put<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn delete<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn options<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn connect<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn patch<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn trace<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn all<F, T>(self, handler: F) -> Self where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn on2<F, T>(self, method: Method, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn get2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn post2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn put2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn delete2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn options2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn connect2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn patch2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn trace2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

pub fn all2<F, T>(self, handler: F) -> Self where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

Trait Implementations

impl Debug for Route[src]

Auto Trait Implementations

impl !RefUnwindSafe for Route

impl Send for Route

impl Sync for Route

impl Unpin for Route

impl !UnwindSafe for Route

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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,