[][src]Struct scrappy_framed::FramedRoute

pub struct FramedRoute<Io, S, F = (), R = (), E = ()> { /* fields omitted */ }

Resource route definition

Route uses builder-like pattern for configuration. If handler is not explicitly set, default 404 Not Found handler is used.

Methods

impl<Io, S> FramedRoute<Io, S>[src]

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

pub fn get(path: &str) -> FramedRoute<Io, S>[src]

pub fn post(path: &str) -> FramedRoute<Io, S>[src]

pub fn put(path: &str) -> FramedRoute<Io, S>[src]

pub fn delete(path: &str) -> FramedRoute<Io, S>[src]

pub fn method(self, method: Method) -> Self[src]

pub fn to<F, R, E>(self, handler: F) -> FramedRoute<Io, S, F, R, E> where
    F: FnMut(FramedRequest<Io, S>) -> R,
    R: Future<Output = Result<(), E>> + 'static,
    E: Debug
[src]

Auto Trait Implementations

impl<Io, S, F, R, E> RefUnwindSafe for FramedRoute<Io, S, F, R, E> where
    E: RefUnwindSafe,
    F: RefUnwindSafe,
    Io: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe

impl<Io, S, F, R, E> Send for FramedRoute<Io, S, F, R, E> where
    E: Send,
    F: Send,
    Io: Send,
    R: Send,
    S: Send

impl<Io, S, F, R, E> Sync for FramedRoute<Io, S, F, R, E> where
    E: Sync,
    F: Sync,
    Io: Sync,
    R: Sync,
    S: Sync

impl<Io, S, F, R, E> Unpin for FramedRoute<Io, S, F, R, E> where
    E: Unpin,
    F: Unpin,
    Io: Unpin,
    R: Unpin,
    S: Unpin

impl<Io, S, F, R, E> UnwindSafe for FramedRoute<Io, S, F, R, E> where
    E: UnwindSafe,
    F: UnwindSafe,
    Io: UnwindSafe,
    R: UnwindSafe,
    S: 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<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>,