pub struct SharedLayer2Endpoint(/* private fields */);
Implementations§
pub fn new<P: PhysicalLayer>( config: &Config, layer1_endpoint: P, ) -> Result<Self, Fail>
pub fn receive( &mut self, ) -> Result<ArrayVec<(EtherType2, DemiBuffer), RECEIVE_BATCH_SIZE>, Fail>
pub fn transmit_arp_packet( &mut self, remote_link_addr: MacAddress, pkt: DemiBuffer, ) -> Result<(), Fail>
pub fn transmit_ipv4_packet( &mut self, remote_link_addr: MacAddress, pkt: DemiBuffer, ) -> Result<(), Fail>
pub fn get_local_link_addr(&self) -> MacAddress
Trait Implementations§
Source§fn clone(&self) -> SharedLayer2Endpoint
fn clone(&self) -> SharedLayer2Endpoint
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more