Enum rust_tdlib::types::NetworkType [−][src]
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
Performs the conversion.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for NetworkType
impl Send for NetworkType
impl Sync for NetworkType
impl Unpin for NetworkType
impl UnwindSafe for NetworkType
Blanket Implementations
Mutably borrows from an owned value. Read more