Struct ashpd::desktop::network_monitor::NetworkStatus[][src]

pub struct NetworkStatus {
    pub available: bool,
    pub metered: bool,
    pub connectivity: Connectivity,
}
Expand description

The network status, composed of the availability, metered & connectivity

Fields

available: bool

Whether the network is considered available.

metered: bool

Whether the network is considered metered.

connectivity: Connectivity

More detailed information about the host’s network connectivity

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Get the signature for the implementing type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.