pub struct InterfaceEntry {
pub id: InterfaceId,
pub info: InterfaceInfo,
pub writer: Box<dyn Writer>,
pub online: bool,
pub dynamic: bool,
pub ifac: Option<IfacState>,
pub stats: InterfaceStats,
pub interface_type: String,
}Expand description
Everything the driver tracks per interface.
Fields§
§id: InterfaceId§info: InterfaceInfo§writer: Box<dyn Writer>§online: bool§dynamic: boolTrue for dynamically spawned interfaces (e.g. TCP server clients). These are fully removed on InterfaceDown rather than just marked offline.
ifac: Option<IfacState>IFAC state for this interface, if access codes are enabled.
stats: InterfaceStatsTraffic statistics.
interface_type: StringHuman-readable interface type string (e.g. “TCPClientInterface”).
Auto Trait Implementations§
impl Freeze for InterfaceEntry
impl !RefUnwindSafe for InterfaceEntry
impl Send for InterfaceEntry
impl !Sync for InterfaceEntry
impl Unpin for InterfaceEntry
impl !UnwindSafe for InterfaceEntry
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