Enum rtdlib::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
A mobile network
Tuple Fields of Mobile
A mobile roaming network
Tuple Fields of MobileRoaming
The network is not available
Tuple Fields of None
A different network type (e.g., Ethernet network)
Tuple Fields of Other
A Wi-Fi network
Tuple Fields of WiFi
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