pub struct CommandContext<'a> {
pub sink: &'a mut dyn ChannelSink,
pub debug: &'a mut dyn DebugAccess,
pub messages: &'a mut dyn MessageAccess,
pub session: &'a dyn SessionAccess,
pub agent: &'a mut dyn AgentAccess,
}Expand description
Typed access to agent subsystems for slash command handlers.
Each field is a trait object providing access to one subsystem group. Constructed by
zeph-core at dispatch time from Agent<C> fields. Handlers receive &mut CommandContext
and access only the fields they need.
§Lifetimes
The lifetime 'a ties all references to the dispatch scope. A CommandContext must not
outlive the &mut Agent<C> it was constructed from.
Fields§
§sink: &'a mut dyn ChannelSinkI/O channel for sending responses to the user.
debug: &'a mut dyn DebugAccessDebug/diagnostics state: dump, format, logging config.
messages: &'a mut dyn MessageAccessConversation message history and queue operations.
session: &'a dyn SessionAccessSession and channel properties (e.g., supports_exit).
agent: &'a mut dyn AgentAccessBroad access to agent subsystems for commands that need multiple agent fields.
Trait Implementations§
Source§impl CommandHandler<CommandContext<'_>> for AgentCommand
impl CommandHandler<CommandContext<'_>> for AgentCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for CacheStatsCommand
impl CommandHandler<CommandContext<'_>> for CacheStatsCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for ClearCommand
impl CommandHandler<CommandContext<'_>> for ClearCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for ClearQueueCommand
impl CommandHandler<CommandContext<'_>> for ClearQueueCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for CompactCommand
impl CommandHandler<CommandContext<'_>> for CompactCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for DebugDumpCommand
impl CommandHandler<CommandContext<'_>> for DebugDumpCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for DumpFormatCommand
impl CommandHandler<CommandContext<'_>> for DumpFormatCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for ExitCommand
impl CommandHandler<CommandContext<'_>> for ExitCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for ExperimentCommand
impl CommandHandler<CommandContext<'_>> for ExperimentCommand
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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§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§impl CommandHandler<CommandContext<'_>> for FeedbackCommand
impl CommandHandler<CommandContext<'_>> for FeedbackCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for FocusCommand
impl CommandHandler<CommandContext<'_>> for FocusCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§fn feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§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§impl CommandHandler<CommandContext<'_>> for GraphCommand
impl CommandHandler<CommandContext<'_>> for GraphCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for GuardrailCommand
impl CommandHandler<CommandContext<'_>> for GuardrailCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§fn feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§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§impl CommandHandler<CommandContext<'_>> for GuidelinesCommand
impl CommandHandler<CommandContext<'_>> for GuidelinesCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§fn feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§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§impl CommandHandler<CommandContext<'_>> for HelpCommand
impl CommandHandler<CommandContext<'_>> for HelpCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for ImageCommand
impl CommandHandler<CommandContext<'_>> for ImageCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for LogCommand
impl CommandHandler<CommandContext<'_>> for LogCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for LspCommand
impl CommandHandler<CommandContext<'_>> for LspCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§fn feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§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§impl CommandHandler<CommandContext<'_>> for McpCommand
impl CommandHandler<CommandContext<'_>> for McpCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for MemoryCommand
impl CommandHandler<CommandContext<'_>> for MemoryCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for ModelCommand
impl CommandHandler<CommandContext<'_>> for ModelCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for NewConversationCommand
impl CommandHandler<CommandContext<'_>> for NewConversationCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for PlanCommand
impl CommandHandler<CommandContext<'_>> for PlanCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for PolicyCommand
impl CommandHandler<CommandContext<'_>> for PolicyCommand
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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§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§impl CommandHandler<CommandContext<'_>> for ProviderCommand
impl CommandHandler<CommandContext<'_>> for ProviderCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for QuitCommand
impl CommandHandler<CommandContext<'_>> for QuitCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for RecapCommand
impl CommandHandler<CommandContext<'_>> for RecapCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for ResetCommand
impl CommandHandler<CommandContext<'_>> for ResetCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for SchedulerCommand
impl CommandHandler<CommandContext<'_>> for SchedulerCommand
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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§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§impl CommandHandler<CommandContext<'_>> for SideQuestCommand
impl CommandHandler<CommandContext<'_>> for SideQuestCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§fn feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§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§impl CommandHandler<CommandContext<'_>> for SkillCommand
impl CommandHandler<CommandContext<'_>> for SkillCommand
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 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.
Source§impl CommandHandler<CommandContext<'_>> for SkillsCommand
impl CommandHandler<CommandContext<'_>> for SkillsCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 feature_gate(&self) -> Option<&'static str>
fn feature_gate(&self) -> Option<&'static str>
Feature gate label, if this command is conditionally compiled.
Source§impl CommandHandler<CommandContext<'_>> for StatusCommand
impl CommandHandler<CommandContext<'_>> for StatusCommand
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 category(&self) -> SlashCategory
fn category(&self) -> SlashCategory
Category for grouping in
/help.Source§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 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 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<'a> Freeze for CommandContext<'a>
impl<'a> !RefUnwindSafe for CommandContext<'a>
impl<'a> Send for CommandContext<'a>
impl<'a> !Sync for CommandContext<'a>
impl<'a> Unpin for CommandContext<'a>
impl<'a> UnsafeUnpin for CommandContext<'a>
impl<'a> !UnwindSafe for CommandContext<'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