pub struct AuthFlowWrapper<T: AuthenticationFlow> { /* private fields */ }Expand description
Wrapper to convert a concrete AuthenticationFlow into a DynAuthenticationFlow
Implementations§
Source§impl<T: AuthenticationFlow> AuthFlowWrapper<T>
impl<T: AuthenticationFlow> AuthFlowWrapper<T>
Trait Implementations§
Source§impl<T: AuthenticationFlow + 'static> DynAuthenticationFlow for AuthFlowWrapper<T>where
T::State: 'static,
impl<T: AuthenticationFlow + 'static> DynAuthenticationFlow for AuthFlowWrapper<T>where
T::State: 'static,
Source§fn available_methods(&self) -> Vec<AuthMethod>
fn available_methods(&self) -> Vec<AuthMethod>
Get available authentication methods for this provider
Source§fn start_auth<'life0, 'async_trait>(
&'life0 self,
method: AuthMethod,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_auth<'life0, 'async_trait>(
&'life0 self,
method: AuthMethod,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start an authentication flow
Source§fn get_initial_progress<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 Box<dyn Any + Send + Sync>,
method: AuthMethod,
) -> Pin<Box<dyn Future<Output = Result<AuthProgress>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_initial_progress<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 Box<dyn Any + Send + Sync>,
method: AuthMethod,
) -> Pin<Box<dyn Future<Output = Result<AuthProgress>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get initial progress/instructions after starting auth
Source§fn handle_input<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 mut Box<dyn Any + Send + Sync>,
input: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AuthProgress>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_input<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 mut Box<dyn Any + Send + Sync>,
input: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AuthProgress>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Handle user input during authentication
Source§fn is_authenticated<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_authenticated<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if the provider is already authenticated
Source§fn provider_name(&self) -> String
fn provider_name(&self) -> String
Get a display name for the provider
Auto Trait Implementations§
impl<T> Freeze for AuthFlowWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for AuthFlowWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for AuthFlowWrapper<T>
impl<T> Sync for AuthFlowWrapper<T>
impl<T> Unpin for AuthFlowWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for AuthFlowWrapper<T>where
T: UnwindSafe,
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