Enum pcap::ConnectionStatus
source · pub enum ConnectionStatus {
Unknown,
Connected,
Disconnected,
NotApplicable,
}
Expand description
Indication of whether the adapter is connected or not; for wireless interfaces, “connected” means “associated with a network”.
Variants§
Unknown
It’s unknown whether the adapter is connected or not
Connected
The adapter is connected
Disconnected
The adapter is disconnected
NotApplicable
The notion of “connected” and “disconnected” don’t apply to this interface; for example, it doesn’t apply to a loopback device
Trait Implementations§
source§impl Clone for ConnectionStatus
impl Clone for ConnectionStatus
source§fn clone(&self) -> ConnectionStatus
fn clone(&self) -> ConnectionStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectionStatus
impl Debug for ConnectionStatus
source§impl From<u32> for ConnectionStatus
impl From<u32> for ConnectionStatus
source§impl PartialEq for ConnectionStatus
impl PartialEq for ConnectionStatus
impl Eq for ConnectionStatus
impl StructuralPartialEq for ConnectionStatus
Auto Trait Implementations§
impl Freeze for ConnectionStatus
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)