Struct iquery::commands::ListCommand
source · pub struct ListCommand {
pub manifest: Option<String>,
pub with_url: bool,
pub accessor: Option<String>,
}
Expand description
Lists all components (relative to the scope where the archivist receives events from) of components that expose inspect.
Fields§
§manifest: Option<String>
the name of the manifest file that we are interested in. If this is provided, the output will only contain monikers for components whose url contains the provided name.
with_url: bool
also print the URL of the component.
accessor: Option<String>
A selector specifying what fuchsia.diagnostics.ArchiveAccessor
to connect to.
The selector will be in the form of:
Typically this is the output of iquery list-accessors
.
For example: bootstrap/archivist:expose:fuchsia.diagnostics.FeedbackArchiveAccessor
means that the command will connect to the FeedbackArchiveAccecssor
exposed by bootstrap/archivist
.
Trait Implementations§
source§impl ArgsInfo for ListCommand
impl ArgsInfo for ListCommand
source§fn get_args_info() -> CommandInfoWithArgs
fn get_args_info() -> CommandInfoWithArgs
Returns the argument info.
§fn get_subcommands() -> Vec<SubCommandInfo<'static>>
fn get_subcommands() -> Vec<SubCommandInfo<'static>>
Returns the list of subcommands
source§impl Command for ListCommand
impl Command for ListCommand
type Result = ListResult
fn execute<'life0, 'life1, 'async_trait, P>(
&'life0 self,
provider: &'life1 P
) -> Pin<Box<dyn Future<Output = Result<Self::Result, Error>> + Send + 'async_trait>>where
P: 'async_trait + DiagnosticsProvider,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
source§impl Debug for ListCommand
impl Debug for ListCommand
source§impl Default for ListCommand
impl Default for ListCommand
source§fn default() -> ListCommand
fn default() -> ListCommand
Returns the “default value” for a type. Read more
source§impl FromArgs for ListCommand
impl FromArgs for ListCommand
source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str]
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str] ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
source§impl PartialEq for ListCommand
impl PartialEq for ListCommand
source§fn eq(&self, other: &ListCommand) -> bool
fn eq(&self, other: &ListCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SubCommand for ListCommand
impl SubCommand for ListCommand
impl StructuralPartialEq for ListCommand
Auto Trait Implementations§
impl Freeze for ListCommand
impl RefUnwindSafe for ListCommand
impl Send for ListCommand
impl Sync for ListCommand
impl Unpin for ListCommand
impl UnwindSafe for ListCommand
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
§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoAny for T
impl<T> IntoAny for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SubCommands for Twhere
T: SubCommand,
impl<T> SubCommands for Twhere
T: SubCommand,
§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.