[−][src]Struct actix_framed::FramedRoute
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]
F: FnMut(FramedRequest<Io, S>) -> R,
R: IntoFuture<Item = ()>,
R::Future: 'static,
R::Error: Debug,
Auto Trait Implementations
impl<Io, S, F, R> Send for FramedRoute<Io, S, F, R> where
F: Send,
Io: Send,
R: Send,
S: Send,
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,
F: Sync,
Io: Sync,
R: Sync,
S: Sync,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,