pub struct StaticAuthProvider { /* private fields */ }Expand description
A static auth provider that always returns the same token. Dev/test only.
Implementations§
Trait Implementations§
Source§impl AuthProvider for StaticAuthProvider
impl AuthProvider for StaticAuthProvider
Source§fn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 AuthRequest,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 AuthRequest,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Provide an authentication token for the given request context.
Auto Trait Implementations§
impl Freeze for StaticAuthProvider
impl RefUnwindSafe for StaticAuthProvider
impl Send for StaticAuthProvider
impl Sync for StaticAuthProvider
impl Unpin for StaticAuthProvider
impl UnsafeUnpin for StaticAuthProvider
impl UnwindSafe for StaticAuthProvider
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