pub struct ExtensionRef<'a, T>(pub &'a T);
Expand description
Extract immutable reference of element stored inside Extensions
Tuple Fields§
§0: &'a T
Trait Implementations§
Source§impl<'a, T: Debug> Debug for ExtensionRef<'a, T>
impl<'a, T: Debug> Debug for ExtensionRef<'a, T>
Source§impl<T> Deref for ExtensionRef<'_, T>
impl<T> Deref for ExtensionRef<'_, T>
Source§impl<'a, 'r, C, B, T> FromRequest<'a, WebContext<'r, C, B>> for ExtensionRef<'a, T>
impl<'a, 'r, C, B, T> FromRequest<'a, WebContext<'r, C, B>> for ExtensionRef<'a, T>
type Type<'b> = ExtensionRef<'b, T>
type Error = Error
async fn from_request( ctx: &'a WebContext<'r, C, B>, ) -> Result<Self, Self::Error>
Auto Trait Implementations§
impl<'a, T> Freeze for ExtensionRef<'a, T>
impl<'a, T> RefUnwindSafe for ExtensionRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ExtensionRef<'a, T>where
T: Sync,
impl<'a, T> Sync for ExtensionRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for ExtensionRef<'a, T>
impl<'a, T> UnwindSafe for ExtensionRef<'a, T>where
T: RefUnwindSafe,
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