pub struct UDPDriverComponent<A: Alarm<'static> + 'static> { /* private fields */ }
Implementations§
Source§impl<A: Alarm<'static>> UDPDriverComponent<A>
impl<A: Alarm<'static>> UDPDriverComponent<A>
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, interface_list: &'static [IPAddr], ) -> Self
Trait Implementations§
Source§impl<A: Alarm<'static>> Component for UDPDriverComponent<A>
impl<A: Alarm<'static>> Component for UDPDriverComponent<A>
Source§type StaticInput = (&'static mut MaybeUninit<UDPSendStruct<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>>, &'static mut MaybeUninit<UdpVisibilityCapability>, &'static mut MaybeUninit<NetworkCapability>, &'static mut MaybeUninit<UDPDriver<'static>>, &'static mut MaybeUninit<[u8; 200]>, &'static mut MaybeUninit<UDPReceiver<'static>>)
type StaticInput = (&'static mut MaybeUninit<UDPSendStruct<'static, IP6SendStruct<'static, VirtualMuxAlarm<'static, A>>>>, &'static mut MaybeUninit<UdpVisibilityCapability>, &'static mut MaybeUninit<NetworkCapability>, &'static mut MaybeUninit<UDPDriver<'static>>, &'static mut MaybeUninit<[u8; 200]>, &'static mut MaybeUninit<UDPReceiver<'static>>)
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 UDPDriver<'static>
type Output = &'static UDPDriver<'static>
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> Freeze for UDPDriverComponent<A>
impl<A> !RefUnwindSafe for UDPDriverComponent<A>
impl<A> !Send for UDPDriverComponent<A>
impl<A> !Sync for UDPDriverComponent<A>
impl<A> Unpin for UDPDriverComponent<A>
impl<A> !UnwindSafe for UDPDriverComponent<A>
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