Struct rust_tdlib::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>, [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 SetNetworkTypeimpl Send for SetNetworkTypeimpl Sync for SetNetworkTypeimpl Unpin for SetNetworkTypeimpl UnwindSafe for SetNetworkTypeBlanket Implementations
Mutably borrows from an owned value. Read more