Trait EtherInterface
powerline
pub trait EtherInterface: Debug { type Error: Debug + Display; type Socket: EtherSocket<Error = Self::Error>; fn open(&self, ethertype: EtherType) -> Result<Self::Socket, Self::Error>; fn name(&self) -> &str; fn address(&self) -> EtherAddr; fn is_up(&self) -> bool; fn is_loopback(&self) -> bool; }
type Error: Debug + Display
type Socket: EtherSocket<Error = Self::Error>
fn open(&self, ethertype: EtherType) -> Result<Self::Socket, Self::Error>
fn name(&self) -> &str
fn address(&self) -> EtherAddr
fn is_up(&self) -> bool
fn is_loopback(&self) -> bool