pub struct StaticKeyAuthenticationMethod { /* private fields */ }Expand description
Authenticaton method for a static secret key
Implementations
sourceimpl StaticKeyAuthenticationMethod
impl StaticKeyAuthenticationMethod
pub fn new(key: impl Into<HeapSecretKey>) -> Self
Trait Implementations
sourceimpl AuthenticationMethod for StaticKeyAuthenticationMethod
impl AuthenticationMethod for StaticKeyAuthenticationMethod
sourcefn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
authenticator: &'life1 mut dyn Authenticator
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
authenticator: &'life1 mut dyn Authenticator
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Performs authentication using the
authenticator to submit challenges and other
information based on the authentication method Read moresourceimpl Clone for StaticKeyAuthenticationMethod
impl Clone for StaticKeyAuthenticationMethod
sourcefn clone(&self) -> StaticKeyAuthenticationMethod
fn clone(&self) -> StaticKeyAuthenticationMethod
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for StaticKeyAuthenticationMethod
impl Send for StaticKeyAuthenticationMethod
impl Sync for StaticKeyAuthenticationMethod
impl Unpin for StaticKeyAuthenticationMethod
impl UnwindSafe for StaticKeyAuthenticationMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more