pub struct DefaultContextExtractor;Expand description
Default context extractor that only captures the remote address
Trait Implementations§
Source§impl ContextExtractor for DefaultContextExtractor
impl ContextExtractor for DefaultContextExtractor
Source§fn extract<'life0, 'async_trait>(
&'life0 self,
remote_addr: Option<SocketAddr>,
_metadata: Option<Arc<dyn Any + Send + Sync>>,
) -> Pin<Box<dyn Future<Output = ConnectionContext> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn extract<'life0, 'async_trait>(
&'life0 self,
remote_addr: Option<SocketAddr>,
_metadata: Option<Arc<dyn Any + Send + Sync>>,
) -> Pin<Box<dyn Future<Output = ConnectionContext> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Extract connection context for authentication Read more
Auto Trait Implementations§
impl Freeze for DefaultContextExtractor
impl RefUnwindSafe for DefaultContextExtractor
impl Send for DefaultContextExtractor
impl Sync for DefaultContextExtractor
impl Unpin for DefaultContextExtractor
impl UnwindSafe for DefaultContextExtractor
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