Struct rust_tdlib::client::auth_handler::SignalAuthStateHandler
source · [−]pub struct SignalAuthStateHandler { /* private fields */ }Expand description
All required methods wait for data sent by Sender.
Implementations
Trait Implementations
sourceimpl AuthStateHandler for SignalAuthStateHandler
impl AuthStateHandler for SignalAuthStateHandler
sourcefn handle_wait_code<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitCode
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_wait_code<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitCode
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns wait code
sourcefn handle_encryption_key<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitEncryptionKey
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_encryption_key<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitEncryptionKey
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns database encryption key
sourcefn handle_wait_password<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitPassword
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_wait_password<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitPassword
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns password
sourcefn handle_wait_phone_number<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitPhoneNumber
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_wait_phone_number<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitPhoneNumber
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns phone number
sourcefn handle_wait_registration<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitRegistration
) -> Pin<Box<dyn Future<Output = (String, String)> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_wait_registration<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 AuthorizationStateWaitRegistration
) -> Pin<Box<dyn Future<Output = (String, String)> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns first_name and second_name
sourcefn handle_other_device_confirmation<'life0, 'life1, 'async_trait>(
&'life0 self,
wait_device_confirmation: &'life1 AuthorizationStateWaitOtherDeviceConfirmation
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Interacts with provided link
sourceimpl Clone for SignalAuthStateHandler
impl Clone for SignalAuthStateHandler
sourcefn clone(&self) -> SignalAuthStateHandler
fn clone(&self) -> SignalAuthStateHandler
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SignalAuthStateHandler
impl Send for SignalAuthStateHandler
impl Sync for SignalAuthStateHandler
impl Unpin for SignalAuthStateHandler
impl !UnwindSafe for SignalAuthStateHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more