pub struct RawCommand<'a> { /* private fields */ }
Implementations§
Source§impl<'a> RawCommand<'a>
impl<'a> RawCommand<'a>
Trait Implementations§
Source§impl<'a> Autocomplete for RawCommand<'a>
impl<'a> Autocomplete for RawCommand<'a>
Source§fn autocomplete(_: Request<'_>, _: &mut Autocompletion<'_>)
fn autocomplete(_: Request<'_>, _: &mut Autocompletion<'_>)
Try to process autocompletion request
Autocompleted bytes (not present in request) should be written to
given autocompletion.
Source§impl<'a> Clone for RawCommand<'a>
impl<'a> Clone for RawCommand<'a>
Source§fn clone(&self) -> RawCommand<'a>
fn clone(&self) -> RawCommand<'a>
Returns a copy 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<'a> Debug for RawCommand<'a>
impl<'a> Debug for RawCommand<'a>
Source§impl<'a> FromRaw<'a> for RawCommand<'a>
impl<'a> FromRaw<'a> for RawCommand<'a>
Source§fn parse(raw: RawCommand<'a>) -> Result<Self, ParseError<'a>>
fn parse(raw: RawCommand<'a>) -> Result<Self, ParseError<'a>>
Parse raw command into typed command
Source§impl<'a> Help for RawCommand<'a>
impl<'a> Help for RawCommand<'a>
Source§fn command_count() -> usize
fn command_count() -> usize
How many commands are known
Source§fn list_commands<W: Write<Error = E>, E: Error>(
_: &mut Writer<'_, W, E>,
) -> Result<(), E>
fn list_commands<W: Write<Error = E>, E: Error>( _: &mut Writer<'_, W, E>, ) -> Result<(), E>
Print all commands and short description of each
Source§fn command_help<W: Write<Error = E>, E: Error, F: FnMut(&mut Writer<'_, W, E>) -> Result<(), E>>(
_: &mut F,
_: RawCommand<'_>,
_: &mut Writer<'_, W, E>,
) -> Result<(), HelpError<E>>
fn command_help<W: Write<Error = E>, E: Error, F: FnMut(&mut Writer<'_, W, E>) -> Result<(), E>>( _: &mut F, _: RawCommand<'_>, _: &mut Writer<'_, W, E>, ) -> Result<(), HelpError<E>>
Print help for given command. Command might contain -h or –help options
Use given writer to print help text
If help request cannot be processed by this object,
Err(HelpError::UnknownCommand) must be returned
Source§impl<'a> PartialEq for RawCommand<'a>
impl<'a> PartialEq for RawCommand<'a>
impl<'a> Eq for RawCommand<'a>
impl<'a> StructuralPartialEq for RawCommand<'a>
Auto Trait Implementations§
impl<'a> Freeze for RawCommand<'a>
impl<'a> RefUnwindSafe for RawCommand<'a>
impl<'a> Send for RawCommand<'a>
impl<'a> Sync for RawCommand<'a>
impl<'a> Unpin for RawCommand<'a>
impl<'a> UnwindSafe for RawCommand<'a>
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