Struct viz_core::Context[][src]

pub struct Context { /* fields omitted */ }

Implementations

impl Context[src]

pub fn new(req: Request) -> Self[src]

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

pub fn version(&self) -> Version[src]

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

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

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

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

pub fn header(&self, key: impl AsRef<str>) -> Option<&HeaderValue>[src]

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

pub fn extensions(&self) -> &Extensions[src]

pub fn extensions_mut(&mut self) -> &mut Extensions[src]

pub fn take_body(&mut self) -> Option<Body>[src]

pub fn middleware(&self) -> &Middlewares[src]

pub fn middleware_mut(&mut self) -> &mut Middlewares[src]

pub async fn extract<T: Extract>(&mut self) -> Result<T, T::Error>[src]

pub async fn next(&mut self) -> Result<Response>[src]

Trait Implementations

impl ContextExt for Context[src]

impl ContextExt for Context[src]

impl ContextExt for Context[src]

impl ContextExt for Context[src]

impl ContextExt for Context[src]

impl ContextExt for Context[src]

impl ContextExt for Context[src]

impl From<Request<Body>> for Context[src]

impl<'a, F, T> Handle<'a, Context> for HandlerWrapper<F, T> where
    F: HandlerBase<T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

type Output = Result<Response>

Returns Output

impl<'a, F, T> Handle<'a, Context> for HandlerSuper<F, T> where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Send
[src]

type Output = Result<Response>

Returns Output

Auto Trait Implementations

impl !RefUnwindSafe for Context

impl Send for Context

impl Sync for Context

impl Unpin for Context

impl !UnwindSafe for Context

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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