Trait powerline::EtherInterface[][src]

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; }

Associated Types

type Error: Debug + Display[src]

type Socket: EtherSocket<Error = Self::Error>[src]

Loading content...

Required methods

fn open(&self, ethertype: EtherType) -> Result<Self::Socket, Self::Error>[src]

fn name(&self) -> &str[src]

fn address(&self) -> EtherAddr[src]

fn is_up(&self) -> bool[src]

fn is_loopback(&self) -> bool[src]

Loading content...

Implementors

impl EtherInterface for LinuxInterface[src]

type Error = Error

type Socket = LinuxRawSocket

Loading content...