[−][src]Struct mendes::Context
Methods
impl<A> Context<A> where
A: Application,
[src]
A: Application,
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,
A: Send + Sync,
<A as Application>::RequestBody: Send,
impl<A> Sync for Context<A> where
A: Send + Sync,
<A as Application>::RequestBody: Sync,
A: Send + Sync,
<A as Application>::RequestBody: Sync,
impl<A> Unpin for Context<A> where
<A as Application>::RequestBody: Unpin,
<A as Application>::RequestBody: Unpin,
impl<A> !UnwindSafe for Context<A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,