pub struct Extension<T>(pub T);Tuple Fields§
§0: TTrait Implementations§
source§impl<T, S> FromContext<S> for Extension<T>
impl<T, S> FromContext<S> for Extension<T>
type Rejection = ExtensionRejection
async fn from_context( cx: &mut HttpContext, _state: &S ) -> Result<Self, Self::Rejection>
impl<T: Copy> Copy for Extension<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Extension<T>where
T: RefUnwindSafe,
impl<T> Send for Extension<T>where
T: Send,
impl<T> Sync for Extension<T>where
T: Sync,
impl<T> Unpin for Extension<T>where
T: Unpin,
impl<T> UnwindSafe for Extension<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more