pub struct ExtensionKey(/* private fields */);Expand description
an extractor type wrapping around Key hinting itself can be extracted from request extensions. See WebRequest::extensions for run time state management.
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionKey
impl Clone for ExtensionKey
Source§fn clone(&self) -> ExtensionKey
fn clone(&self) -> ExtensionKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtensionKey
impl Debug for ExtensionKey
Source§impl From<ExtensionKey> for Key
impl From<ExtensionKey> for Key
Source§fn from(key: ExtensionKey) -> Self
fn from(key: ExtensionKey) -> Self
Converts to this type from the input type.
Source§impl From<Key> for ExtensionKey
impl From<Key> for ExtensionKey
Source§impl<'a, 'r, C, B> FromRequest<'a, WebContext<'r, C, B>> for ExtensionKey
impl<'a, 'r, C, B> FromRequest<'a, WebContext<'r, C, B>> for ExtensionKey
type Type<'b> = ExtensionKey
type Error = Error
async fn from_request( ctx: &'a WebContext<'r, C, B>, ) -> Result<Self, Self::Error>
Auto Trait Implementations§
impl Freeze for ExtensionKey
impl RefUnwindSafe for ExtensionKey
impl Send for ExtensionKey
impl Sync for ExtensionKey
impl Unpin for ExtensionKey
impl UnsafeUnpin for ExtensionKey
impl UnwindSafe for ExtensionKey
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