pub struct ConsoleClientStateHandler;
Trait Implementations§
Source§impl ClientAuthStateHandler for ConsoleClientStateHandler
impl ClientAuthStateHandler for ConsoleClientStateHandler
Source§fn handle_wait_code<'life0, 'life1, 'async_trait>(
&'life0 self,
_wait_code: &'life1 AuthorizationStateWaitCode,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_wait_code<'life0, 'life1, 'async_trait>(
&'life0 self,
_wait_code: &'life1 AuthorizationStateWaitCode,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns wait code
Source§fn handle_encryption_key<'life0, 'life1, 'async_trait>(
&'life0 self,
_wait_encryption_key: &'life1 AuthorizationStateWaitEncryptionKey,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_encryption_key<'life0, 'life1, 'async_trait>(
&'life0 self,
_wait_encryption_key: &'life1 AuthorizationStateWaitEncryptionKey,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns database encryption key
Source§fn handle_wait_password<'life0, 'life1, 'async_trait>(
&'life0 self,
_wait_password: &'life1 AuthorizationStateWaitPassword,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_wait_password<'life0, 'life1, 'async_trait>(
&'life0 self,
_wait_password: &'life1 AuthorizationStateWaitPassword,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns password
Source§fn handle_wait_client_identifier<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 AuthorizationStateWaitPhoneNumber,
) -> Pin<Box<dyn Future<Output = ClientIdentifier> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_wait_client_identifier<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 AuthorizationStateWaitPhoneNumber,
) -> Pin<Box<dyn Future<Output = ClientIdentifier> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns ClientIdentifier
Source§fn handle_wait_registration<'life0, 'life1, 'async_trait>(
&'life0 self,
_wait_registration: &'life1 AuthorizationStateWaitRegistration,
) -> Pin<Box<dyn Future<Output = (String, String)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_wait_registration<'life0, 'life1, 'async_trait>(
&'life0 self,
_wait_registration: &'life1 AuthorizationStateWaitRegistration,
) -> Pin<Box<dyn Future<Output = (String, String)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns first_name and second_name
Source§fn handle_other_device_confirmation<'life0, 'life1, 'async_trait>(
&'life0 self,
wait_device_confirmation: &'life1 AuthorizationStateWaitOtherDeviceConfirmation,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_other_device_confirmation<'life0, 'life1, 'async_trait>(
&'life0 self,
wait_device_confirmation: &'life1 AuthorizationStateWaitOtherDeviceConfirmation,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Interacts with provided link
Source§impl Clone for ConsoleClientStateHandler
impl Clone for ConsoleClientStateHandler
Source§fn clone(&self) -> ConsoleClientStateHandler
fn clone(&self) -> ConsoleClientStateHandler
Returns a copy 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 ConsoleClientStateHandler
impl RefUnwindSafe for ConsoleClientStateHandler
impl Send for ConsoleClientStateHandler
impl Sync for ConsoleClientStateHandler
impl Unpin for ConsoleClientStateHandler
impl UnwindSafe for ConsoleClientStateHandler
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