Enum rtdlib::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)
Tuple Fields
A mobile network
MobileRoaming(NetworkTypeMobileRoaming)
Tuple Fields
A mobile roaming network
None(NetworkTypeNone)
Tuple Fields
The network is not available
Other(NetworkTypeOther)
Tuple Fields
A different network type (e.g., Ethernet network)
WiFi(NetworkTypeWiFi)
Tuple Fields
A Wi-Fi network
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<NetworkType, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<NetworkType, D::Error> where
D: Deserializer<'de>,
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