pub struct StoreSlashCommand;Expand description
Read/write the cross-thread key-value store (spec-080, #6363).
Subcommands: get <ns> <key>; put <ns> <key> <value...>; list <ns_prefix> [limit];
delete <ns> <key>. Disabled ([memory.store].enabled = false, the default) returns an
informational message, not an error.
Trait Implementations§
Source§impl CommandHandler<CommandContext<'_>> for StoreSlashCommand
impl CommandHandler<CommandContext<'_>> for StoreSlashCommand
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Command name including the leading slash, e.g.
"/help". Read moreSource§fn description(&self) -> &'static str
fn description(&self) -> &'static str
One-line description shown in
/help output.Source§fn args_hint(&self) -> &'static str
fn args_hint(&self) -> &'static str
Argument hint shown after the command name in help, e.g.
"[path]". Read moreSource§fn category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§fn requires_auth(&self) -> bool
fn requires_auth(&self) -> bool
Returns
true if this command requires a trusted (local) caller. Read moreSource§fn handle<'a>(
&'a self,
ctx: &'a mut CommandContext<'_>,
args: &'a str,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput, CommandError>> + Send + 'a>>
fn handle<'a>( &'a self, ctx: &'a mut CommandContext<'_>, args: &'a str, ) -> Pin<Box<dyn Future<Output = Result<CommandOutput, CommandError>> + Send + 'a>>
Execute the command. Read more
Source§fn feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Auto Trait Implementations§
impl Freeze for StoreSlashCommand
impl RefUnwindSafe for StoreSlashCommand
impl Send for StoreSlashCommand
impl Sync for StoreSlashCommand
impl Unpin for StoreSlashCommand
impl UnsafeUnpin for StoreSlashCommand
impl UnwindSafe for StoreSlashCommand
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