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
impl SetNetworkType
[src]
impl SetNetworkType
[src]Trait Implementations
impl AsRef<SetNetworkType> for SetNetworkType
[src]
impl AsRef<SetNetworkType> for SetNetworkType
[src]fn as_ref(&self) -> &SetNetworkType
[src]
fn as_ref(&self) -> &SetNetworkType
[src]Performs the conversion.
impl Clone for SetNetworkType
[src]
impl Clone for SetNetworkType
[src]fn clone(&self) -> SetNetworkType
[src]
fn clone(&self) -> SetNetworkType
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for SetNetworkType
[src]
impl Debug for SetNetworkType
[src]impl Default for SetNetworkType
[src]
impl Default for SetNetworkType
[src]fn default() -> SetNetworkType
[src]
fn default() -> SetNetworkType
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for SetNetworkType
[src]
impl<'de> Deserialize<'de> for SetNetworkType
[src]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
impl Serialize for SetNetworkType
[src]
impl Serialize for SetNetworkType
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,