pub struct UDPMuxComponent<A: Alarm<'static> + 'static, M: MacDevice<'static> + 'static> { /* private fields */ }
Implementations§
Source§impl<A: Alarm<'static> + 'static, M: MacDevice<'static>> UDPMuxComponent<A, M>
impl<A: Alarm<'static> + 'static, M: MacDevice<'static>> UDPMuxComponent<A, M>
pub fn new( mux_mac: &'static MuxMac<'static, M>, ctx_pfix_len: u8, ctx_pfix: [u8; 16], dst_mac_addr: MacAddress, src_mac_addr: MacAddress, interface_list: &'static [IPAddr], alarm_mux: &'static MuxAlarm<'static, A>, ) -> Self
Trait Implementations§
Source§impl<A: Alarm<'static> + 'static, M: MacDevice<'static>> Component for UDPMuxComponent<A, M>
impl<A: Alarm<'static> + 'static, M: MacDevice<'static>> Component for UDPMuxComponent<A, M>
Source§type StaticInput = (&'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>, &'static mut MaybeUninit<MacUser<'static, M>>, &'static mut MaybeUninit<Sixlowpan<'static, VirtualMuxAlarm<'static, A>, Context>>, &'static mut MaybeUninit<RxState<'static>>, &'static mut MaybeUninit<IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>, &'static mut MaybeUninit<MuxUdpSender<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>>, &'static mut MaybeUninit<MuxUdpReceiver<'static>>, &'static mut MaybeUninit<UdpPortManager>, &'static mut MaybeUninit<IP6Packet<'static>>, &'static mut MaybeUninit<IP6RecvStruct<'static>>, &'static mut MaybeUninit<[Option<SocketBindingEntry>; 16]>, &'static mut MaybeUninit<[u8; 130]>, &'static mut MaybeUninit<[u8; 1280]>, &'static mut MaybeUninit<[u8; 200]>, &'static mut MaybeUninit<UdpVisibilityCapability>, &'static mut MaybeUninit<IpVisibilityCapability>)
type StaticInput = (&'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>, &'static mut MaybeUninit<MacUser<'static, M>>, &'static mut MaybeUninit<Sixlowpan<'static, VirtualMuxAlarm<'static, A>, Context>>, &'static mut MaybeUninit<RxState<'static>>, &'static mut MaybeUninit<IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>, &'static mut MaybeUninit<MuxUdpSender<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>>, &'static mut MaybeUninit<MuxUdpReceiver<'static>>, &'static mut MaybeUninit<UdpPortManager>, &'static mut MaybeUninit<IP6Packet<'static>>, &'static mut MaybeUninit<IP6RecvStruct<'static>>, &'static mut MaybeUninit<[Option<SocketBindingEntry>; 16]>, &'static mut MaybeUninit<[u8; 130]>, &'static mut MaybeUninit<[u8; 1280]>, &'static mut MaybeUninit<[u8; 200]>, &'static mut MaybeUninit<UdpVisibilityCapability>, &'static mut MaybeUninit<IpVisibilityCapability>)
An optional type to specify the chip or board specific static memory
that a component needs to setup the output object(s). This is the memory
that
crate::static_buf!()
would normally setup, but generic
components cannot setup static buffers for types which are
chip-dependent, so those buffers have to be passed in manually, and the
Component::StaticInput
type makes this possible.Source§type Output = (&'static MuxUdpSender<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>, &'static MuxUdpReceiver<'static>, &'static UdpPortManager)
type Output = (&'static MuxUdpSender<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>, &'static MuxUdpReceiver<'static>, &'static UdpPortManager)
The type (e.g., capsule, peripheral) that this implementation of
Component
produces via Component::finalize()
. This is typically
a static reference (&'static
).Source§fn finalize(self, s: Self::StaticInput) -> Self::Output
fn finalize(self, s: Self::StaticInput) -> Self::Output
Auto Trait Implementations§
impl<A, M> Freeze for UDPMuxComponent<A, M>
impl<A, M> !RefUnwindSafe for UDPMuxComponent<A, M>
impl<A, M> !Send for UDPMuxComponent<A, M>
impl<A, M> !Sync for UDPMuxComponent<A, M>
impl<A, M> Unpin for UDPMuxComponent<A, M>
impl<A, M> !UnwindSafe for UDPMuxComponent<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