#[non_exhaustive]pub enum NetworkEvent {
AccessPointsChanged,
DeviceChanged {
interface: Option<String>,
},
ActiveConnectionsChanged,
WirelessEnabledChanged,
SettingsChanged(SettingsChange),
ConnectivityChanged,
NetworkManagerRestarted,
}Expand description
A high-level network event suitable for GUI refresh loops.
This enum is intentionally lossy: each variant is a signal that some part of NetworkManager state changed and the caller should refresh its snapshot. It is not an audit log and does not guarantee every transient event is delivered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AccessPointsChanged
Visible access points or their signal strengths changed.
DeviceChanged
A device was added, removed, or changed state.
ActiveConnectionsChanged
NetworkManager’s active connection list changed.
WirelessEnabledChanged
Wi-Fi enabled or Wi-Fi hardware-enabled state changed.
SettingsChanged(SettingsChange)
Saved connection settings changed.
ConnectivityChanged
NetworkManager’s connectivity state changed.
NetworkManagerRestarted
The org.freedesktop.NetworkManager D-Bus owner changed.
Trait Implementations§
Source§impl Clone for NetworkEvent
impl Clone for NetworkEvent
Source§fn clone(&self) -> NetworkEvent
fn clone(&self) -> NetworkEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkEvent
impl RefUnwindSafe for NetworkEvent
impl Send for NetworkEvent
impl Sync for NetworkEvent
impl Unpin for NetworkEvent
impl UnsafeUnpin for NetworkEvent
impl UnwindSafe for NetworkEvent
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