pub struct CommandQuerySnapshot { /* private fields */ }Expand description
Snapshot of command metadata for query service.
Captures all command info at bootstrap time for module queries. Commands are static after module loading, so snapshot is sufficient.
Implementations§
Source§impl CommandQuerySnapshot
impl CommandQuerySnapshot
Sourcepub fn from_registry(registry: &CommandRegistry) -> Self
pub fn from_registry(registry: &CommandRegistry) -> Self
Create snapshot from CommandRegistry.
Captures all command metadata at the time of creation.
Trait Implementations§
Source§impl CommandQueryService for CommandQuerySnapshot
impl CommandQueryService for CommandQuerySnapshot
Source§fn search_by_prefix(&self, prefix: &str) -> Vec<CommandInfo>
fn search_by_prefix(&self, prefix: &str) -> Vec<CommandInfo>
Search commands by name prefix (for tab completion). Read more
Source§fn find_by_name(&self, name: &str) -> Option<CommandInfo>
fn find_by_name(&self, name: &str) -> Option<CommandInfo>
Find command by exact name or alias. Read more
Source§fn list_user_commands(&self) -> Vec<CommandInfo>
fn list_user_commands(&self) -> Vec<CommandInfo>
List all commands that have user-facing names. Read more
impl Service for CommandQuerySnapshot
Auto Trait Implementations§
impl Freeze for CommandQuerySnapshot
impl RefUnwindSafe for CommandQuerySnapshot
impl Send for CommandQuerySnapshot
impl Sync for CommandQuerySnapshot
impl Unpin for CommandQuerySnapshot
impl UnsafeUnpin for CommandQuerySnapshot
impl UnwindSafe for CommandQuerySnapshot
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request