Struct ashpd::desktop::network_monitor::NetworkStatus
source · pub struct NetworkStatus { /* private fields */ }
Expand description
The network status, composed of the availability, metered & connectivity
Implementations§
source§impl NetworkStatus
impl NetworkStatus
sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Returns whether the network is considered available.
sourcepub fn is_metered(&self) -> bool
pub fn is_metered(&self) -> bool
Returns whether the network is considered metered.
sourcepub fn connectivity(&self) -> Connectivity
pub fn connectivity(&self) -> Connectivity
Returns more detailed information about the host’s network connectivity.
Trait Implementations§
source§impl Debug for NetworkStatus
impl Debug for NetworkStatus
source§impl<'de> Deserialize<'de> for NetworkStatus
impl<'de> Deserialize<'de> for NetworkStatus
source§fn 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
Auto Trait Implementations§
impl Freeze for NetworkStatus
impl RefUnwindSafe for NetworkStatus
impl Send for NetworkStatus
impl Sync for NetworkStatus
impl Unpin for NetworkStatus
impl UnwindSafe for NetworkStatus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more