pub struct RelayContext(_);
Expand description
RelayContext allows context to be parsed to the get
handlers.
This is designed for parsing the Database connection but could be used for any global state.
Create a new context which stores a piece of data.
pub fn nil() -> Self
[src]
Create a new empty context. This can be used if you have no data to put in the context.
Get a pointer to the data stored in the context if it can be found.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.