Struct rust_tdlib::client::auth_handler::AuthStateHandlerProxy
source · pub struct AuthStateHandlerProxy(_);
Expand description
AuthStateHandlerProxy
implements AuthStateHandlerProxy in a way that allows to proxy all auth methods to particular clients.
Implementations§
source§impl AuthStateHandlerProxy
impl AuthStateHandlerProxy
pub fn new() -> Self
pub fn new_with_encryption_key(key: String) -> Self
Trait Implementations§
source§impl AuthStateHandler for AuthStateHandlerProxy
impl AuthStateHandler for AuthStateHandlerProxy
source§fn handle_other_device_confirmation<'life0, 'life1, 'async_trait>(
&'life0 self,
client: Box<dyn ClientAuthStateHandler>,
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, client: Box<dyn ClientAuthStateHandler>, 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§fn handle_wait_code<'life0, 'life1, 'async_trait>(
&'life0 self,
client: Box<dyn ClientAuthStateHandler>,
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, client: Box<dyn ClientAuthStateHandler>, 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,
client: Box<dyn ClientAuthStateHandler>,
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, client: Box<dyn ClientAuthStateHandler>, 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,
client: Box<dyn ClientAuthStateHandler>,
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, client: Box<dyn ClientAuthStateHandler>, 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,
client: Box<dyn ClientAuthStateHandler>,
wait_phone_number: &'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, client: Box<dyn ClientAuthStateHandler>, wait_phone_number: &'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,
client: Box<dyn ClientAuthStateHandler>,
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, client: Box<dyn ClientAuthStateHandler>, 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§impl Clone for AuthStateHandlerProxy
impl Clone for AuthStateHandlerProxy
source§fn clone(&self) -> AuthStateHandlerProxy
fn clone(&self) -> AuthStateHandlerProxy
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 more