pub struct AuthAdapter { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AuthUseCase for AuthAdapter
impl AuthUseCase for AuthAdapter
fn set_password<'life0, 'async_trait>(
&'life0 self,
password: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate_password<'life0, 'async_trait>(
&'life0 mut self,
password: String,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register<'life0, 'async_trait>(
&'life0 mut self,
client_name: String,
identity: String,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn authenticate<'life0, 'async_trait>(
&'life0 mut self,
client_name: String,
identity: String,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn password_required(&self) -> bool
Auto Trait Implementations§
impl Freeze for AuthAdapter
impl !RefUnwindSafe for AuthAdapter
impl Send for AuthAdapter
impl Sync for AuthAdapter
impl Unpin for AuthAdapter
impl UnsafeUnpin for AuthAdapter
impl !UnwindSafe for AuthAdapter
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