pub struct Args {
pub tree: bool,
pub verbose: bool,
pub configuration: Option<u8>,
pub device: Option<UsbDevice>,
}
Expand description
Display USB information
Fields§
§tree: bool
prints USB device tree
verbose: bool
verbose output (prints descriptors)
configuration: Option<u8>
prints configuration descriptor for specified configuration (rather than current configuration)
device: Option<UsbDevice>
shows only devices with the specified vendor and product ID numbers (in hexadecimal) UsbDevice must be in format vendor[:product]
Trait Implementations§
Source§impl FromArgs for Args
impl FromArgs for Args
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
impl StructuralPartialEq for Args
impl TopLevelCommand for Args
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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