pub struct DefaultAuthenticationProvider { /* private fields */ }Expand description
默认认证提供者,提供基础的认证逻辑实现 Default authentication provider, provides basic authentication logic implementation
Implementations§
Trait Implementations§
Source§impl AuthenticationProvider for DefaultAuthenticationProvider
impl AuthenticationProvider for DefaultAuthenticationProvider
Source§fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
headers: &'life1 HeaderMap,
_auth: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
headers: &'life1 HeaderMap,
_auth: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
认证连接请求
Authenticate connection request Read more
Source§impl Clone for DefaultAuthenticationProvider
impl Clone for DefaultAuthenticationProvider
Source§fn clone(&self) -> DefaultAuthenticationProvider
fn clone(&self) -> DefaultAuthenticationProvider
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 moreAuto Trait Implementations§
impl Freeze for DefaultAuthenticationProvider
impl RefUnwindSafe for DefaultAuthenticationProvider
impl Send for DefaultAuthenticationProvider
impl Sync for DefaultAuthenticationProvider
impl Unpin for DefaultAuthenticationProvider
impl UnsafeUnpin for DefaultAuthenticationProvider
impl UnwindSafe for DefaultAuthenticationProvider
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