Skip to main content

Request

Enum Request 

Source
pub enum Request<C: ShellConfig> {
    Command {
        path: String<128>,
        args: Vec<String<128>, 16>,
        original: String<128>,
        _phantom: PhantomData<C>,
    },
    TabComplete {
        path: String<128>,
    },
    History {
        direction: HistoryDirection,
        buffer: String<128>,
    },
}
Expand description

Request type representing parsed user input.

Generic over C: ShellConfig to use configured buffer sizes. Variants are feature-gated based on available features.

Variants§

§

Command

Execute command

Fields

§path: String<128>

Command path

§args: Vec<String<128>, 16>

Command arguments

§original: String<128>

Original command string for history

§_phantom: PhantomData<C>

Phantom data for config type (will be used when const generics stabilize)

§

TabComplete

Request completions

Fields

§path: String<128>

Partial path to complete

§

History

Navigate history

Fields

§direction: HistoryDirection

Navigation direction

§buffer: String<128>

Current buffer content

Trait Implementations§

Source§

impl<C: Clone + ShellConfig> Clone for Request<C>

Source§

fn clone(&self) -> Request<C>

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<C: Debug + ShellConfig> Debug for Request<C>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<C> Freeze for Request<C>

§

impl<C> RefUnwindSafe for Request<C>
where C: RefUnwindSafe,

§

impl<C> Send for Request<C>
where C: Send,

§

impl<C> Sync for Request<C>
where C: Sync,

§

impl<C> Unpin for Request<C>
where C: Unpin,

§

impl<C> UnsafeUnpin for Request<C>

§

impl<C> UnwindSafe for Request<C>
where C: UnwindSafe,

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.