pub enum USBDevice {
Braille,
Keyboard,
Mouse,
Tablet,
WacomTablet,
}Expand description
Legacy -usbdevice device names accepted by QEMU.
Variants§
Trait Implementations§
Source§impl Arbitrary for USBDevice
impl Arbitrary for USBDevice
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = TupleUnion<((u32, Arc<fn() -> USBDevice>), (u32, Arc<fn() -> USBDevice>), (u32, Arc<fn() -> USBDevice>), (u32, Arc<fn() -> USBDevice>), (u32, Arc<fn() -> USBDevice>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> USBDevice>), (u32, Arc<fn() -> USBDevice>), (u32, Arc<fn() -> USBDevice>), (u32, Arc<fn() -> USBDevice>), (u32, Arc<fn() -> USBDevice>))>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Ord for USBDevice
impl Ord for USBDevice
Source§impl PartialOrd for USBDevice
impl PartialOrd for USBDevice
Source§impl ToCommand for USBDevice
impl ToCommand for USBDevice
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()fn has_args(&self) -> bool
Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
Stringimpl Eq for USBDevice
impl StructuralPartialEq for USBDevice
Auto Trait Implementations§
impl Freeze for USBDevice
impl RefUnwindSafe for USBDevice
impl Send for USBDevice
impl Sync for USBDevice
impl Unpin for USBDevice
impl UnsafeUnpin for USBDevice
impl UnwindSafe for USBDevice
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