Struct driver_cp2130::device::UsbOptions
source · pub struct UsbOptions {
pub detach_kernel_driver: bool,
pub claim_interface: bool,
}
Expand description
Options for creating a device instance
Fields§
§detach_kernel_driver: bool
Detach kernel driver if required
claim_interface: bool
Attempt to claim interface
Trait Implementations§
source§impl Args for UsbOptions
impl Args for UsbOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for UsbOptions
impl Clone for UsbOptions
source§fn clone(&self) -> UsbOptions
fn clone(&self) -> UsbOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CommandFactory for UsbOptions
impl CommandFactory for UsbOptions
source§impl Debug for UsbOptions
impl Debug for UsbOptions
source§impl Default for UsbOptions
impl Default for UsbOptions
source§impl FromArgMatches for UsbOptions
impl FromArgMatches for UsbOptions
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for UsbOptions
impl Parser for UsbOptions
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
source§impl PartialEq for UsbOptions
impl PartialEq for UsbOptions
source§fn eq(&self, other: &UsbOptions) -> bool
fn eq(&self, other: &UsbOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UsbOptions
Auto Trait Implementations§
impl Freeze for UsbOptions
impl RefUnwindSafe for UsbOptions
impl Send for UsbOptions
impl Sync for UsbOptions
impl Unpin for UsbOptions
impl UnwindSafe for UsbOptions
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