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
.
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
Auto Trait Implementations
impl<'a> !RefUnwindSafe for NetworkMonitorProxy<'a>
impl<'a> Send for NetworkMonitorProxy<'a>
impl<'a> Sync for NetworkMonitorProxy<'a>
impl<'a> Unpin for NetworkMonitorProxy<'a>
impl<'a> !UnwindSafe for NetworkMonitorProxy<'a>