Struct rtdlib::types::SetNetworkType [−][src]
pub struct SetNetworkType { /* fields omitted */ }
Expand description
Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks, so it should be called whenever the network is changed, even if the network type remains the same. Network type is used to check whether the library can use the network at all and also for collecting detailed network data usage statistics
Implementations
Trait Implementations
Performs the conversion.
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for SetNetworkType
impl Send for SetNetworkType
impl Sync for SetNetworkType
impl Unpin for SetNetworkType
impl UnwindSafe for SetNetworkType
Blanket Implementations
Mutably borrows from an owned value. Read more