[][src]Struct sincere::app::Route

pub struct Route { /* fields omitted */ }

Route

Methods

impl Route[src]

pub fn new(method: Method, pattern: String, handle: Box<Handle>) -> Route[src]

pub fn pattern(&self) -> &String[src]

pub fn method(&self) -> &Method[src]

pub fn path(&self) -> HashMap<String, usize>[src]

pub fn execute(&self, context: &mut Context)[src]

pub fn before<H>(&mut self, handle: H) -> &mut Self where
    H: Fn(&mut Context) + Send + Sync + 'static, 
[src]

pub fn after<H>(&mut self, handle: H) -> &mut Self where
    H: Fn(&mut Context) + Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl Unpin for Route

impl Sync for Route

impl Send for Route

impl !RefUnwindSafe for Route

impl !UnwindSafe for Route

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Erased for T