[][src]Struct actix_framed::FramedRoute

pub struct FramedRoute<Io, S, F = (), R = ()> { /* 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>(self, handler: F) -> FramedRoute<Io, S, F, R> where
    F: FnMut(FramedRequest<Io, S>) -> R,
    R: IntoFuture<Item = ()>,
    R::Future: 'static,
    R::Error: Debug
[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From<T> for T[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.

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

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

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

impl<T> Erased for T