[][src]Struct roa::router::Guard

pub struct Guard<E> { /* fields omitted */ }
This is supported on feature="router" only.

An endpoint wrapper to guard endpoint by http method.

Trait Implementations

impl<'a, S, E> Endpoint<'a, S> for Guard<E> where
    E: Endpoint<'a, S>, 
[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for Guard<E> where
    E: RefUnwindSafe

impl<E> Send for Guard<E> where
    E: Send

impl<E> Sync for Guard<E> where
    E: Sync

impl<E> Unpin for Guard<E> where
    E: Unpin

impl<E> UnwindSafe for Guard<E> where
    E: UnwindSafe

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<'a, S, T, F> Endpoint<'a, S> for T where
    F: 'a + Future<Output = Result<(), Status>>,
    S: 'a,
    T: 'static + Send + Sync + Fn(&'a mut Context<S>) -> F, 
[src]

impl<S, T> EndpointExt<S> for T where
    T: for<'a> Endpoint<'a, S>, 
[src]

impl<T> From<T> 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>,