[−][src]Struct tide::middleware::RequestContext
Fields
app_data: Data
req: Request
params: Option<RouteMatch<'a>>
Methods
impl<'a, Data: Clone + Send> RequestContext<'a, Data>
[src]
pub fn get_item<T: Any + Debug + Clone + Send + Sync>(&self) -> Option<&T>
[src]
Get a configuration item of given type from the endpoint.
pub fn store(&self) -> &Store
[src]
Get the configuration store for this request.
This is for debug purposes. Store
implements Debug
, so the store can be inspected using
{:?}
formatter.
pub fn next(self) -> FutureObj<'a, Response>
[src]
Consume this context, and run remaining middleware chain to completion.
Auto Trait Implementations
impl<'a, Data> Send for RequestContext<'a, Data> where
Data: Send,
Data: Send,
impl<'a, Data> !Sync for RequestContext<'a, Data>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,