pub struct DefaultWsTokenExtractor;Expand description
Default token extractor: returns None so WsAuthManager uses config-aware maps.
默认提取器返回 None,由 WsAuthManager 走尊重配置的 maps 读取。
Trait Implementations§
Source§impl Debug for DefaultWsTokenExtractor
impl Debug for DefaultWsTokenExtractor
Source§impl WsTokenExtractor for DefaultWsTokenExtractor
impl WsTokenExtractor for DefaultWsTokenExtractor
Source§fn extract_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_headers: &'life1 HashMap<String, String>,
_query: &'life2 HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn extract_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_headers: &'life1 HashMap<String, String>,
_query: &'life2 HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Extract token from headers and query parameters
从请求头和查询参数中提取 Token Read more
Auto Trait Implementations§
impl Freeze for DefaultWsTokenExtractor
impl RefUnwindSafe for DefaultWsTokenExtractor
impl Send for DefaultWsTokenExtractor
impl Sync for DefaultWsTokenExtractor
impl Unpin for DefaultWsTokenExtractor
impl UnsafeUnpin for DefaultWsTokenExtractor
impl UnwindSafe for DefaultWsTokenExtractor
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