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 duplicate of the value. Read more
1.0.0§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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)