pub struct DefaultAuthenticator;Expand description
默认认证器
允许所有连接,不进行验证 适用于不需要认证的场景
Trait Implementations§
Source§impl Authenticator for DefaultAuthenticator
impl Authenticator for DefaultAuthenticator
Source§fn authenticate<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_token: &'life1 str,
_connection_id: &'life2 str,
_device_info: Option<&'life3 DeviceInfo>,
_metadata: Option<&'life4 HashMap<String, Vec<u8>>>,
) -> Pin<Box<dyn Future<Output = Result<AuthResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn authenticate<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_token: &'life1 str,
_connection_id: &'life2 str,
_device_info: Option<&'life3 DeviceInfo>,
_metadata: Option<&'life4 HashMap<String, Vec<u8>>>,
) -> Pin<Box<dyn Future<Output = Result<AuthResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
验证 token Read more
Auto Trait Implementations§
impl Freeze for DefaultAuthenticator
impl RefUnwindSafe for DefaultAuthenticator
impl Send for DefaultAuthenticator
impl Sync for DefaultAuthenticator
impl Unpin for DefaultAuthenticator
impl UnsafeUnpin for DefaultAuthenticator
impl UnwindSafe for DefaultAuthenticator
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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