pub struct Runner<'a, P: Platform, const Y: usize>(/* private fields */);
Implementations§
Source§impl<'a, P: Platform, const Y: usize> Runner<'a, P, Y>
impl<'a, P: Platform, const Y: usize> Runner<'a, P, Y>
Sourcepub fn new(
platform: P,
line_buf: &'a mut [u8],
serialize_buf: &'a mut [u8],
settings: &mut P::Settings,
) -> Result<Self, P::Error>
pub fn new( platform: P, line_buf: &'a mut [u8], serialize_buf: &'a mut [u8], settings: &mut P::Settings, ) -> Result<Self, P::Error>
Constructor
§Args
-
platform
- The platform associated with the serial settings, providing the necessary context and API to manage device settings. -
line_buf
- A buffer used for maintaining the serial menu input line. It should be at least as long as the longest user input. -
serialize_buf
- A buffer used for serializing and deserializing settings. This buffer needs to be at least as big as twice the biggest serialized setting plus its path.
Sourcepub fn interface_mut(&mut self) -> &mut P::Interface
pub fn interface_mut(&mut self) -> &mut P::Interface
Get the device communication interface
pub fn platform_mut(&mut self) -> &mut P
pub fn platform(&mut self) -> &P
Auto Trait Implementations§
impl<'a, P, const Y: usize> Freeze for Runner<'a, P, Y>where
P: Freeze,
impl<'a, P, const Y: usize> RefUnwindSafe for Runner<'a, P, Y>where
P: RefUnwindSafe,
impl<'a, P, const Y: usize> Send for Runner<'a, P, Y>where
P: Send,
impl<'a, P, const Y: usize> Sync for Runner<'a, P, Y>where
P: Sync,
impl<'a, P, const Y: usize> Unpin for Runner<'a, P, Y>where
P: Unpin,
impl<'a, P, const Y: usize> !UnwindSafe for Runner<'a, P, Y>
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