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

pub struct NetworkMonitorProxy<'a>(_);
Expand description

The interface provides network status information to sandboxed applications. It is not a portal in the strict sense, since it does not involve user interaction. Applications are expected to use this interface indirectly, via a library API such as the GLib GNetworkMonitor interface.

Implementations

Create a new instance of NetworkMonitorProxy.

Get a reference to the underlying Proxy.

Returns whether the given hostname is believed to be reachable.

Arguments

  • hostname - The hostname to reach.
  • port - The port to reach.

Returns whether the network is considered available. That is, whether the system as a default route for at least one of IPv4 or IPv6.

Returns more detailed information about the host’s network connectivity

Returns whether the network is considered metered. That is, whether the system as traffic flowing through the default connection that is subject to limitations by service providers.

Returns the three values all at once.

Emitted when the network configuration changes.

Trait Implementations

Formats the value using the given formatter. 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.