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
sourceimpl AsRef<NetworkType> for NetworkType
impl AsRef<NetworkType> for NetworkType
sourcefn as_ref(&self) -> &NetworkType
fn as_ref(&self) -> &NetworkType
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for NetworkType
impl Clone for NetworkType
sourcefn clone(&self) -> NetworkType
fn clone(&self) -> NetworkType
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 NetworkType
impl Debug for NetworkType
sourceimpl Default for NetworkType
impl Default for NetworkType
sourceimpl<'de> Deserialize<'de> for NetworkType
impl<'de> Deserialize<'de> for NetworkType
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 NetworkType
impl Serialize for NetworkType
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
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