pub struct Device {
pub name: String,
pub desc: Option<String>,
pub addresses: Vec<Address>,
pub flags: DeviceFlags,
}
Expand description
A network device name and pcap’s description of it.
Fields
name: String
The name of the interface
desc: Option<String>
A textual description of the interface, if available
addresses: Vec<Address>
Addresses associated with this interface
flags: DeviceFlags
Interface flags
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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