Enum rust_tdlib::types::ConnectionState
source · [−]pub enum ConnectionState {
Connecting(ConnectionStateConnecting),
ConnectingToProxy(ConnectionStateConnectingToProxy),
Ready(ConnectionStateReady),
Updating(ConnectionStateUpdating),
WaitingForNetwork(ConnectionStateWaitingForNetwork),
// some variants omitted
}
Expand description
Describes the current state of the connection to Telegram servers
Variants
Connecting(ConnectionStateConnecting)
Currently establishing a connection to the Telegram servers
ConnectingToProxy(ConnectionStateConnectingToProxy)
Currently establishing a connection with a proxy server
Ready(ConnectionStateReady)
There is a working connection to the Telegram servers
Updating(ConnectionStateUpdating)
Downloading data received while the application was offline
WaitingForNetwork(ConnectionStateWaitingForNetwork)
Currently waiting for the network to become available. Use setNetworkType to change the available network type
Implementations
Trait Implementations
sourceimpl AsRef<ConnectionState> for ConnectionState
impl AsRef<ConnectionState> for ConnectionState
sourcefn as_ref(&self) -> &ConnectionState
fn as_ref(&self) -> &ConnectionState
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ConnectionState
impl Clone for ConnectionState
sourcefn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
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
sourceimpl Debug for ConnectionState
impl Debug for ConnectionState
sourceimpl Default for ConnectionState
impl Default for ConnectionState
sourceimpl<'de> Deserialize<'de> for ConnectionState
impl<'de> Deserialize<'de> for ConnectionState
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ConnectionState
impl Serialize for ConnectionState
Auto Trait Implementations
impl RefUnwindSafe for ConnectionState
impl Send for ConnectionState
impl Sync for ConnectionState
impl Unpin for ConnectionState
impl UnwindSafe for ConnectionState
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