[][src]Struct rtdlib::types::SetNetworkType

pub struct SetNetworkType { /* fields omitted */ }

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]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn builder() -> RTDSetNetworkTypeBuilder[src]

pub fn type_(&self) -> &NetworkType[src]

Trait Implementations

impl AsRef<SetNetworkType> for SetNetworkType[src]

impl Clone for SetNetworkType[src]

impl Debug for SetNetworkType[src]

impl Default for SetNetworkType[src]

impl<'de> Deserialize<'de> for SetNetworkType[src]

impl RFunction for SetNetworkType[src]

impl RObject for SetNetworkType[src]

impl Serialize for SetNetworkType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.