Skip to main content

InterfaceStatusView

Trait InterfaceStatusView 

Source
pub trait InterfaceStatusView {
    // Required methods
    fn id(&self) -> InterfaceId;
    fn info(&self) -> &InterfaceInfo;
    fn online(&self) -> bool;
    fn stats(&self) -> &InterfaceStats;
}
Expand description

View trait for interface status, decoupling management from InterfaceEntry.

Required Methods§

Source

fn id(&self) -> InterfaceId

Source

fn info(&self) -> &InterfaceInfo

Source

fn online(&self) -> bool

Source

fn stats(&self) -> &InterfaceStats

Implementors§