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
sourceimpl Clone for ConnectionStatus
impl Clone for ConnectionStatus
sourcefn clone(&self) -> ConnectionStatus
fn clone(&self) -> ConnectionStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConnectionStatus
impl Debug for ConnectionStatus
sourceimpl From<u32> for ConnectionStatus
impl From<u32> for ConnectionStatus
sourceimpl PartialEq<ConnectionStatus> for ConnectionStatus
impl PartialEq<ConnectionStatus> for ConnectionStatus
sourcefn eq(&self, other: &ConnectionStatus) -> bool
fn eq(&self, other: &ConnectionStatus) -> bool
impl Eq for ConnectionStatus
impl StructuralEq for ConnectionStatus
impl StructuralPartialEq for ConnectionStatus
Auto Trait Implementations
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more