[][src]Struct mendes::Context

pub struct Context<A> where
    A: Application
{ /* fields omitted */ }

Methods

impl<A> Context<A> where
    A: Application
[src]

pub fn new(app: Arc<A>, req: Request<A::RequestBody>) -> Context<A>[src]

pub fn next_path(&mut self) -> Option<&str>[src]

pub fn rest(&mut self) -> &str[src]

pub fn take_body(&mut self) -> Option<A::RequestBody>[src]

pub fn rewind(self) -> Self[src]

pub fn app(&self) -> &Arc<A>[src]

pub fn req(&self) -> &Parts[src]

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

pub fn uri(&self) -> &Uri[src]

pub fn headers(&self) -> &HeaderMap[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Context<A>

impl<A> Send for Context<A> where
    A: Send + Sync,
    <A as Application>::RequestBody: Send

impl<A> Sync for Context<A> where
    A: Send + Sync,
    <A as Application>::RequestBody: Sync

impl<A> Unpin for Context<A> where
    <A as Application>::RequestBody: Unpin

impl<A> !UnwindSafe for Context<A>

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, 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.