Skip to main content

MinimalConfig

Struct MinimalConfig 

Source
pub struct MinimalConfig;
Expand description

Minimal configuration for resource-constrained systems.

Trait Implementations§

Source§

impl Clone for MinimalConfig

Source§

fn clone(&self) -> MinimalConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MinimalConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for MinimalConfig

Source§

fn eq(&self, other: &MinimalConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ShellConfig for MinimalConfig

Source§

const MAX_INPUT: usize = 64

Maximum input buffer size (default: 128)
Source§

const MAX_PATH_DEPTH: usize = 4

Maximum path depth (default: 8)
Source§

const MAX_ARGS: usize = 8

Maximum number of command arguments (default: 16)
Source§

const MAX_PROMPT: usize = 32

Maximum prompt length (default: 64)
Source§

const MAX_RESPONSE: usize = 128

Maximum response message length (default: 256)
Source§

const HISTORY_SIZE: usize = 4

Command history size (default: 10)
Source§

const MSG_WELCOME: &'static str = "Welcome"

Welcome message shown on activation
Source§

const MSG_LOGIN_PROMPT: &'static str = "Login> "

Login prompt
Source§

const MSG_INVALID_LOGIN_FORMAT: &'static str = "Invalid format. Use name:pass"

Invalid login format message
Source§

const MSG_LOGIN_FAILED: &'static str = "Login failed"

Login failed message
Source§

const MSG_LOGIN_SUCCESS: &'static str = "Logged in"

Login success message
Source§

const MSG_LOGOUT: &'static str = "Logged out"

Logout message
Source§

impl Copy for MinimalConfig

Source§

impl Eq for MinimalConfig

Source§

impl StructuralPartialEq for MinimalConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.