Skip to main content

CommandContext

Struct CommandContext 

Source
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 ChannelSink

I/O channel for sending responses to the user.

§debug: &'a mut dyn DebugAccess

Debug/diagnostics state: dump, format, logging config.

§messages: &'a mut dyn MessageAccess

Conversation message history and queue operations.

§session: &'a dyn SessionAccess

Session and channel properties (e.g., supports_exit).

§agent: &'a mut dyn AgentAccess

Broad access to agent subsystems for commands that need multiple agent fields.

Trait Implementations§

Source§

impl CommandHandler<CommandContext<'_>> for AgentCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for CacheStatsCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for ClearCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for ClearQueueCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for CompactCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for DebugDumpCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for DumpFormatCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for ExitCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for ExperimentCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn category(&self) -> SlashCategory

Category for grouping in /help.
Source§

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>>

Execute the command. Read more
Source§

impl CommandHandler<CommandContext<'_>> for FeedbackCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for FocusCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn category(&self) -> SlashCategory

Category for grouping in /help.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

impl CommandHandler<CommandContext<'_>> for GraphCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for GuardrailCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn category(&self) -> SlashCategory

Category for grouping in /help.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

impl CommandHandler<CommandContext<'_>> for GuidelinesCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn category(&self) -> SlashCategory

Category for grouping in /help.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

impl CommandHandler<CommandContext<'_>> for HelpCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for ImageCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for LogCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for LspCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn category(&self) -> SlashCategory

Category for grouping in /help.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

impl CommandHandler<CommandContext<'_>> for McpCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for MemoryCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for ModelCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for NewConversationCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for PlanCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for PolicyCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn category(&self) -> SlashCategory

Category for grouping in /help.
Source§

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>>

Execute the command. Read more
Source§

impl CommandHandler<CommandContext<'_>> for ProviderCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for QuitCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for RecapCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for ResetCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for SchedulerCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn category(&self) -> SlashCategory

Category for grouping in /help.
Source§

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>>

Execute the command. Read more
Source§

impl CommandHandler<CommandContext<'_>> for SideQuestCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn category(&self) -> SlashCategory

Category for grouping in /help.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

impl CommandHandler<CommandContext<'_>> for SkillCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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>>

Execute the command. Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for SkillsCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

fn feature_gate(&self) -> Option<&'static str>

Feature gate label, if this command is conditionally compiled.
Source§

impl CommandHandler<CommandContext<'_>> for StatusCommand

Source§

fn name(&self) -> &'static str

Command name including the leading slash, e.g. "/help". Read more
Source§

fn description(&self) -> &'static str

One-line description shown in /help output.
Source§

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>>

Execute the command. Read more
Source§

fn args_hint(&self) -> &'static str

Argument hint shown after the command name in help, e.g. "[path]". Read more
Source§

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> 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> 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.