Trait powerline::EtherSocket[][src]

pub trait EtherSocket: Debug {
    type Error: Debug + Display;
    fn sendto(
        &mut self,
        destination: EtherAddr,
        data: &[u8]
    ) -> Result<(), Self::Error>;
fn recvfrom<'a>(
        &mut self,
        buffer: &'a mut [u8],
        timeout: Option<Duration>
    ) -> Result<Option<(EtherAddr, &'a [u8])>, Self::Error>; }

Associated Types

Loading content...

Required methods

fn sendto(
    &mut self,
    destination: EtherAddr,
    data: &[u8]
) -> Result<(), Self::Error>
[src]

fn recvfrom<'a>(
    &mut self,
    buffer: &'a mut [u8],
    timeout: Option<Duration>
) -> Result<Option<(EtherAddr, &'a [u8])>, Self::Error>
[src]

Loading content...

Implementors

impl EtherSocket for LinuxRawSocket[src]

type Error = Error

Loading content...