Skip to main content

Crate driver_debug

Crate driver_debug 

Source
Expand description

Helper library for productionized driver debugging.

Re-exports§

pub use anyhow;
pub use self;
pub use fidl;
pub use fidl_fuchsia_driver_debug;
pub use zx;

Structs§

CommandResponder
Responder for a single fuchsia.driver.debug.Debug/Execute request.
ExecutionResult
Result of executing a driver debug command.

Traits§

FromArgs
Types which can be constructed from a set of commandline arguments.
SubCommands
A FromArgs implementation that can parse into one or more subcommands.

Functions§

command_info
Returns metadata for all supported subcommands of C.
dispatch
Parses arguments into C and executes handler on the parsed subcommand, returning an ExecutionResult.
next_command
Reads the next parsed subcommand from a DebugRequestStream.
parse_args
Parses a slice of argument strings into the subcommand type C.
serve
Serves a DebugRequestStream by parsing commands into C and invoking handler for each command.

Derive Macros§

FromArgs
Entrypoint for #[derive(FromArgs)].