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
§
_phantom: PhantomData<C>Phantom data for config type (will be used when const generics stabilize)
TabComplete
Request completions
History
Navigate history
Trait Implementations§
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> 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