Struct rtdlib::types::SetNetworkType [−][src]
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]
fn as_ref(&self) -> &SetNetworkType
[src]
impl Clone for SetNetworkType
[src]
fn clone(&self) -> SetNetworkType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SetNetworkType
[src]
impl Default for SetNetworkType
[src]
fn default() -> SetNetworkType
[src]
impl<'de> Deserialize<'de> for SetNetworkType
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RFunction for SetNetworkType
[src]
impl RObject for SetNetworkType
[src]
impl Serialize for SetNetworkType
[src]
Auto Trait Implementations
impl RefUnwindSafe for SetNetworkType
[src]
impl Send for SetNetworkType
[src]
impl Sync for SetNetworkType
[src]
impl Unpin for SetNetworkType
[src]
impl UnwindSafe for SetNetworkType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,