pub struct DefaultConfig;Expand description
Default configuration for typical embedded systems.
Trait Implementations§
Source§impl Clone for DefaultConfig
impl Clone for DefaultConfig
Source§fn clone(&self) -> DefaultConfig
fn clone(&self) -> DefaultConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultConfig
impl Debug for DefaultConfig
Source§impl PartialEq for DefaultConfig
impl PartialEq for DefaultConfig
Source§impl ShellConfig for DefaultConfig
impl ShellConfig for DefaultConfig
Source§const MAX_PATH_DEPTH: usize = 8
const MAX_PATH_DEPTH: usize = 8
Maximum path depth (default: 8)
Source§const MAX_PROMPT: usize = 64
const MAX_PROMPT: usize = 64
Maximum prompt length (default: 64)
Source§const MAX_RESPONSE: usize = 256
const MAX_RESPONSE: usize = 256
Maximum response message length (default: 256)
Source§const HISTORY_SIZE: usize = 10
const HISTORY_SIZE: usize = 10
Command history size (default: 10)
Source§const MSG_WELCOME: &'static str = "Welcome to nut-shell! Type '?' for help."
const MSG_WELCOME: &'static str = "Welcome to nut-shell! Type '?' for help."
Welcome message shown on activation
Source§const MSG_LOGIN_PROMPT: &'static str = "Login> "
const MSG_LOGIN_PROMPT: &'static str = "Login> "
Login prompt
Source§const MSG_INVALID_LOGIN_FORMAT: &'static str = "Invalid login format. Use: <name>:<password>"
const MSG_INVALID_LOGIN_FORMAT: &'static str = "Invalid login format. Use: <name>:<password>"
Invalid login format message
Source§const MSG_LOGIN_FAILED: &'static str = "Login failed. Try again."
const MSG_LOGIN_FAILED: &'static str = "Login failed. Try again."
Login failed message
Source§const MSG_LOGIN_SUCCESS: &'static str = "Logged in. Type '?' for help."
const MSG_LOGIN_SUCCESS: &'static str = "Logged in. Type '?' for help."
Login success message
Source§const MSG_LOGOUT: &'static str = "Logged out."
const MSG_LOGOUT: &'static str = "Logged out."
Logout message
impl Copy for DefaultConfig
impl Eq for DefaultConfig
impl StructuralPartialEq for DefaultConfig
Auto Trait Implementations§
impl Freeze for DefaultConfig
impl RefUnwindSafe for DefaultConfig
impl Send for DefaultConfig
impl Sync for DefaultConfig
impl Unpin for DefaultConfig
impl UnsafeUnpin for DefaultConfig
impl UnwindSafe for DefaultConfig
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