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