pub struct ProcessConsoleComponent<const COMMAND_HISTORY_LEN: usize, A: 'static + Alarm<'static>> { /* private fields */ }
Implementations§
Source§impl<const COMMAND_HISTORY_LEN: usize, A: 'static + Alarm<'static>> ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
impl<const COMMAND_HISTORY_LEN: usize, A: 'static + Alarm<'static>> ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
pub fn new( board_kernel: &'static Kernel, uart_mux: &'static MuxUart<'_>, alarm_mux: &'static MuxAlarm<'static, A>, process_printer: &'static dyn ProcessPrinter, reset_function: Option<fn() -> !>, ) -> ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
Trait Implementations§
Source§impl<const COMMAND_HISTORY_LEN: usize, A: 'static + Alarm<'static>> Component for ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
impl<const COMMAND_HISTORY_LEN: usize, A: 'static + Alarm<'static>> Component for ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
Source§type StaticInput = (&'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>, &'static mut MaybeUninit<UartDevice<'static>>, &'static mut MaybeUninit<[u8; 500]>, &'static mut MaybeUninit<[u8; 4]>, &'static mut MaybeUninit<[u8; 300]>, &'static mut MaybeUninit<[u8; 64]>, &'static mut MaybeUninit<[Command; COMMAND_HISTORY_LEN]>, &'static mut MaybeUninit<ProcessConsole<'static, COMMAND_HISTORY_LEN, VirtualMuxAlarm<'static, A>, Capability>>)
type StaticInput = (&'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>, &'static mut MaybeUninit<UartDevice<'static>>, &'static mut MaybeUninit<[u8; 500]>, &'static mut MaybeUninit<[u8; 4]>, &'static mut MaybeUninit<[u8; 300]>, &'static mut MaybeUninit<[u8; 64]>, &'static mut MaybeUninit<[Command; COMMAND_HISTORY_LEN]>, &'static mut MaybeUninit<ProcessConsole<'static, COMMAND_HISTORY_LEN, VirtualMuxAlarm<'static, A>, Capability>>)
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 ProcessConsole<'static, COMMAND_HISTORY_LEN, VirtualMuxAlarm<'static, A>, Capability>
type Output = &'static ProcessConsole<'static, COMMAND_HISTORY_LEN, VirtualMuxAlarm<'static, A>, Capability>
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, static_buffer: Self::StaticInput) -> Self::Output
fn finalize(self, static_buffer: Self::StaticInput) -> Self::Output
Auto Trait Implementations§
impl<const COMMAND_HISTORY_LEN: usize, A> Freeze for ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
impl<const COMMAND_HISTORY_LEN: usize, A> !RefUnwindSafe for ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
impl<const COMMAND_HISTORY_LEN: usize, A> !Send for ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
impl<const COMMAND_HISTORY_LEN: usize, A> !Sync for ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
impl<const COMMAND_HISTORY_LEN: usize, A> Unpin for ProcessConsoleComponent<COMMAND_HISTORY_LEN, A>
impl<const COMMAND_HISTORY_LEN: usize, A> !UnwindSafe for ProcessConsoleComponent<COMMAND_HISTORY_LEN, 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