[−][src]Enum rust_tdlib::types::AuthorizationState
Represents the current authorization state of the client
Variants
Closed(AuthorizationStateClosed)
TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to with error code 500. To continue working, one should create a new instance of the TDLib client
Closing(AuthorizationStateClosing)
TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while. All resources will be freed only after authorizationStateClosed has been received
LoggingOut(AuthorizationStateLoggingOut)
The user is currently logging out
Ready(AuthorizationStateReady)
The user has been successfully authorized. TDLib is now ready to answer queries
WaitCode(AuthorizationStateWaitCode)
TDLib needs the user's authentication code to authorize
WaitEncryptionKey(AuthorizationStateWaitEncryptionKey)
TDLib needs an encryption key to decrypt the local database
WaitOtherDeviceConfirmation(AuthorizationStateWaitOtherDeviceConfirmation)
The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link
WaitPassword(AuthorizationStateWaitPassword)
The user has been authorized, but needs to enter a password to start using the application
WaitPhoneNumber(AuthorizationStateWaitPhoneNumber)
TDLib needs the user's phone number to authorize. Call setAuthenticationPhoneNumber
to provide the phone number, or use requestQrCodeAuthentication
, or checkAuthenticationBotToken
for other authentication options
WaitRegistration(AuthorizationStateWaitRegistration)
The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration
WaitTdlibParameters(AuthorizationStateWaitTdlibParameters)
TDLib needs TdlibParameters for initialization
GetAuthorizationState(GetAuthorizationState)
Returns the current authorization state; this is an offline request. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state
Implementations
impl AuthorizationState
[src]
Trait Implementations
impl AsRef<AuthorizationState> for AuthorizationState
[src]
pub fn as_ref(&self) -> &AuthorizationState
[src]
impl Clone for AuthorizationState
[src]
pub fn clone(&self) -> AuthorizationState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AuthorizationState
[src]
impl Default for AuthorizationState
[src]
impl<'de> Deserialize<'de> for AuthorizationState
[src]
pub fn deserialize<D>(deserializer: D) -> Result<AuthorizationState, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for AuthorizationState
[src]
impl Serialize for AuthorizationState
[src]
Auto Trait Implementations
impl RefUnwindSafe for AuthorizationState
[src]
impl Send for AuthorizationState
[src]
impl Sync for AuthorizationState
[src]
impl Unpin for AuthorizationState
[src]
impl UnwindSafe for AuthorizationState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,