Struct rust_tdlib::types::SetNetworkType
source · [−]pub struct SetNetworkType { /* private fields */ }
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 must 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
sourceimpl AsRef<SetNetworkType> for SetNetworkType
impl AsRef<SetNetworkType> for SetNetworkType
sourcefn as_ref(&self) -> &SetNetworkType
fn as_ref(&self) -> &SetNetworkType
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for SetNetworkType
impl Clone for SetNetworkType
sourcefn clone(&self) -> SetNetworkType
fn clone(&self) -> SetNetworkType
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 SetNetworkType
impl Debug for SetNetworkType
sourceimpl Default for SetNetworkType
impl Default for SetNetworkType
sourcefn default() -> SetNetworkType
fn default() -> SetNetworkType
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SetNetworkType
impl<'de> Deserialize<'de> for SetNetworkType
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 SetNetworkType
impl Serialize for SetNetworkType
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
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