Struct capsules_extra::ieee802154::virtual_mac::MuxMac
source · pub struct MuxMac<'a, M: MacDevice<'a>> { /* private fields */ }
Expand description
IEE 802.15.4 MAC device muxer that keeps a list of MAC users and sequences any pending transmission requests. Any received frames from the underlying MAC device are sent to all users.
Implementations§
Trait Implementations§
source§impl<'a, M: MacDevice<'a>> RxClient for MuxMac<'a, M>
impl<'a, M: MacDevice<'a>> RxClient for MuxMac<'a, M>
source§fn receive<'b>(
&self,
buf: &'b [u8],
header: Header<'b>,
lqi: u8,
data_offset: usize,
data_len: usize,
)
fn receive<'b>( &self, buf: &'b [u8], header: Header<'b>, lqi: u8, data_offset: usize, data_len: usize, )
When a frame is received, this callback is triggered. The client only
receives an immutable borrow of the buffer. Only completely valid,
unsecured frames that have passed the incoming security procedure are
exposed to the client. Read more
Auto Trait Implementations§
impl<'a, M> !Freeze for MuxMac<'a, M>
impl<'a, M> !RefUnwindSafe for MuxMac<'a, M>
impl<'a, M> !Send for MuxMac<'a, M>
impl<'a, M> !Sync for MuxMac<'a, M>
impl<'a, M> Unpin for MuxMac<'a, M>
impl<'a, M> !UnwindSafe for MuxMac<'a, M>
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