Enum rust_tdlib::types::NetworkType
source · pub enum NetworkType {
Mobile(NetworkTypeMobile),
MobileRoaming(NetworkTypeMobileRoaming),
None(NetworkTypeNone),
Other(NetworkTypeOther),
WiFi(NetworkTypeWiFi),
// some variants omitted
}
Expand description
Represents the type of a network
Variants§
Mobile(NetworkTypeMobile)
A mobile network
MobileRoaming(NetworkTypeMobileRoaming)
A mobile roaming network
None(NetworkTypeNone)
The network is not available
Other(NetworkTypeOther)
A different network type (e.g., Ethernet network)
WiFi(NetworkTypeWiFi)
A Wi-Fi network
Implementations§
Trait Implementations§
source§impl AsRef<NetworkType> for NetworkType
impl AsRef<NetworkType> for NetworkType
source§fn as_ref(&self) -> &NetworkType
fn as_ref(&self) -> &NetworkType
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for NetworkType
impl Clone for NetworkType
source§fn clone(&self) -> NetworkType
fn clone(&self) -> NetworkType
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 moresource§impl Debug for NetworkType
impl Debug for NetworkType
source§impl Default for NetworkType
impl Default for NetworkType
source§fn default() -> NetworkType
fn default() -> NetworkType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NetworkType
impl<'de> Deserialize<'de> for NetworkType
source§fn 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