pub struct ThreadNetworkComponent<A: Alarm<'static> + 'static, B: AES128<'static> + AES128Ctr + AES128CBC + AES128ECB + 'static> { /* private fields */ }
Implementations§
Source§impl<A: Alarm<'static> + 'static, B: AES128<'static> + AES128Ctr + AES128CBC + AES128ECB + 'static> ThreadNetworkComponent<A, B>
impl<A: Alarm<'static> + 'static, B: AES128<'static> + AES128Ctr + AES128CBC + AES128ECB + 'static> ThreadNetworkComponent<A, B>
pub fn new( board_kernel: &'static Kernel, driver_num: usize, udp_send_mux: &'static MuxUdpSender<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>, udp_recv_mux: &'static MuxUdpReceiver<'static>, port_table: &'static UdpPortManager, aes_mux: &'static MuxAES128CCM<'static, B>, serial_num: [u8; 8], alarm_mux: &'static MuxAlarm<'static, A>, ) -> Self
Trait Implementations§
Source§impl<A: Alarm<'static> + 'static, B: AES128<'static> + AES128Ctr + AES128CBC + AES128ECB + 'static> Component for ThreadNetworkComponent<A, B>
impl<A: Alarm<'static> + 'static, B: AES128<'static> + AES128Ctr + AES128CBC + AES128ECB + 'static> Component for ThreadNetworkComponent<A, B>
Source§type StaticInput = (&'static mut MaybeUninit<UDPSendStruct<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>>, &'static mut MaybeUninit<UdpVisibilityCapability>, &'static mut MaybeUninit<NetworkCapability>, &'static mut MaybeUninit<ThreadNetworkDriver<'static, VirtualMuxAlarm<'static, A>>>, &'static mut MaybeUninit<[u8; 200]>, &'static mut MaybeUninit<[u8; 200]>, &'static mut MaybeUninit<UDPReceiver<'static>>, &'static mut MaybeUninit<[u8; 178]>, &'static mut MaybeUninit<VirtualAES128CCM<'static, B>>, &'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>)
type StaticInput = (&'static mut MaybeUninit<UDPSendStruct<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>>, &'static mut MaybeUninit<UdpVisibilityCapability>, &'static mut MaybeUninit<NetworkCapability>, &'static mut MaybeUninit<ThreadNetworkDriver<'static, VirtualMuxAlarm<'static, A>>>, &'static mut MaybeUninit<[u8; 200]>, &'static mut MaybeUninit<[u8; 200]>, &'static mut MaybeUninit<UDPReceiver<'static>>, &'static mut MaybeUninit<[u8; 178]>, &'static mut MaybeUninit<VirtualAES128CCM<'static, B>>, &'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>)
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 ThreadNetworkDriver<'static, VirtualMuxAlarm<'static, A>>
type Output = &'static ThreadNetworkDriver<'static, VirtualMuxAlarm<'static, A>>
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, B> Freeze for ThreadNetworkComponent<A, B>
impl<A, B> !RefUnwindSafe for ThreadNetworkComponent<A, B>
impl<A, B> !Send for ThreadNetworkComponent<A, B>
impl<A, B> !Sync for ThreadNetworkComponent<A, B>
impl<A, B> Unpin for ThreadNetworkComponent<A, B>
impl<A, B> !UnwindSafe for ThreadNetworkComponent<A, B>
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