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”).
Trait Implementations§
Source§impl InterfaceStatusView for InterfaceEntry
impl InterfaceStatusView for InterfaceEntry
Auto Trait Implementations§
impl Freeze for InterfaceEntry
impl !RefUnwindSafe for InterfaceEntry
impl Send for InterfaceEntry
impl !Sync for InterfaceEntry
impl Unpin for InterfaceEntry
impl UnsafeUnpin 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
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more