pub enum NetworkState {
Connected,
Connecting,
Disconnecting,
Disconnected,
Unavailable,
}Expand description
How a network device is doing, from NetworkManager’s State.
Variants§
Connected
Connected.
Connecting
On its way to connected: from preparing to waiting on secondary connections.
Disconnecting
Going down, as when told to disconnect or before connecting elsewhere.
Disconnected
Ready but not connected, or failed to connect.
Not ready, as with Wi-Fi off or no cable in, or a state not known.
Trait Implementations§
Source§impl Clone for NetworkState
impl Clone for NetworkState
impl Copy for NetworkState
Source§impl Debug for NetworkState
impl Debug for NetworkState
impl Eq for NetworkState
Source§impl PartialEq for NetworkState
impl PartialEq for NetworkState
impl StructuralPartialEq for NetworkState
Auto Trait Implementations§
impl Forget for NetworkState
impl Freeze for NetworkState
impl Move for NetworkState
impl RefUnwindSafe for NetworkState
impl Send for NetworkState
impl Sync for NetworkState
impl Unpin for NetworkState
impl UnsafeUnpin for NetworkState
impl UnwindSafe for NetworkState
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