pub struct Shell<'tree, L, IO, H, C>{ /* private fields */ }Expand description
Shell orchestration struct.
Brings together all components following the unified architecture pattern. Uses single code path for both auth-enabled and auth-disabled modes.
Implementations§
Source§impl<'tree, L, IO, H, C> Shell<'tree, L, IO, H, C>
impl<'tree, L, IO, H, C> Shell<'tree, L, IO, H, C>
Sourcepub fn activate(&mut self) -> Result<(), IO::Error>
pub fn activate(&mut self) -> Result<(), IO::Error>
Activate the shell (show welcome message and initial prompt).
Transitions from Inactive to appropriate state (LoggedOut or LoggedIn).
Sourcepub fn deactivate(&mut self)
pub fn deactivate(&mut self)
Deactivate shell (transition to Inactive).
Clears session and resets to root directory.
Sourcepub fn process_char(&mut self, c: char) -> Result<(), IO::Error>
pub fn process_char(&mut self, c: char) -> Result<(), IO::Error>
Process single character of input (main entry point for char-by-char processing).
Trait Implementations§
Auto Trait Implementations§
impl<'tree, L, IO, H, C> Freeze for Shell<'tree, L, IO, H, C>
impl<'tree, L, IO, H, C> RefUnwindSafe for Shell<'tree, L, IO, H, C>
impl<'tree, L, IO, H, C> Send for Shell<'tree, L, IO, H, C>
impl<'tree, L, IO, H, C> Sync for Shell<'tree, L, IO, H, C>
impl<'tree, L, IO, H, C> Unpin for Shell<'tree, L, IO, H, C>
impl<'tree, L, IO, H, C> UnwindSafe for Shell<'tree, L, IO, H, C>
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