pub struct UShell<S, A, H, const CMD_LEN: usize> { /* private fields */ }
Implementations§
Source§impl<S, A, H, const CMD_LEN: usize> UShell<S, A, H, CMD_LEN>
impl<S, A, H, const CMD_LEN: usize> UShell<S, A, H, CMD_LEN>
pub fn new(serial: S, autocomplete: A, history: H) -> Self
pub fn autocomplete(&mut self, autocomplete_on: bool)
pub fn history(&mut self, history_on: bool)
pub fn get_autocomplete_mut(&mut self) -> &mut A
pub fn get_history_mut(&mut self) -> &mut H
pub fn get_serial_mut(&mut self) -> &mut S
pub fn reset(&mut self)
pub fn spin<E, ENV: Environment<S, A, H, E, CMD_LEN>>( &mut self, env: &mut ENV, ) -> SpinResult<S, E>
pub fn poll(&mut self) -> PollResult<'_, S>
pub fn clear(&mut self) -> ShellResult<S>
pub fn bell(&mut self) -> ShellResult<S>
pub fn push_history(&mut self, line: &str) -> ShellResult<S>
Trait Implementations§
Auto Trait Implementations§
impl<S, A, H, const CMD_LEN: usize> Freeze for UShell<S, A, H, CMD_LEN>
impl<S, A, H, const CMD_LEN: usize> RefUnwindSafe for UShell<S, A, H, CMD_LEN>
impl<S, A, H, const CMD_LEN: usize> Send for UShell<S, A, H, CMD_LEN>
impl<S, A, H, const CMD_LEN: usize> Sync for UShell<S, A, H, CMD_LEN>
impl<S, A, H, const CMD_LEN: usize> Unpin for UShell<S, A, H, CMD_LEN>
impl<S, A, H, const CMD_LEN: usize> UnwindSafe for UShell<S, A, H, CMD_LEN>
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