pub trait NetworkInterface {
fn send_ethernet<'life0, 'life1, 'async_trait>(
&'life0 self,
header_buffer: NicBuffer,
buffers: &'life1 [SendableBuffer<'_>]
) -> Pin<Box<dyn Future<Output = Result<(), EthernetError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn recv_ethernet<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<NicBuffer>>, EthernetError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_ethernet_addr(&self) -> EthernetAddr;
}
Required Methods
sourcefn send_ethernet<'life0, 'life1, 'async_trait>(
fn send_ethernet<'life0, 'life1, 'async_trait>(
&'life0 self,
header_buffer: NicBuffer,
buffers: &'life1 [SendableBuffer<'_>]
) -> Pin<Box<dyn Future<Output = Result<(), EthernetError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourcefn recv_ethernet<'life0, 'async_trait>(
fn recv_ethernet<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<NicBuffer>>, EthernetError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
source