pub enum OnOffDefaultOn {
On,
Off,
}Expand description
A QEMU on/off value whose Rust default is "on".
The default is OnOffDefaultOn::On.
Variants§
Trait Implementations§
Source§impl Arbitrary for OnOffDefaultOn
impl Arbitrary for OnOffDefaultOn
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() -> OnOffDefaultOn>), (u32, Arc<fn() -> OnOffDefaultOn>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> OnOffDefaultOn>), (u32, Arc<fn() -> OnOffDefaultOn>))>
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 Clone for OnOffDefaultOn
impl Clone for OnOffDefaultOn
Source§fn clone(&self) -> OnOffDefaultOn
fn clone(&self) -> OnOffDefaultOn
Returns a duplicate 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 Debug for OnOffDefaultOn
impl Debug for OnOffDefaultOn
Source§impl Default for OnOffDefaultOn
impl Default for OnOffDefaultOn
Source§fn default() -> OnOffDefaultOn
fn default() -> OnOffDefaultOn
Returns the “default value” for a type. Read more
Source§impl Display for OnOffDefaultOn
impl Display for OnOffDefaultOn
Source§impl FromStr for OnOffDefaultOn
impl FromStr for OnOffDefaultOn
Source§impl Hash for OnOffDefaultOn
impl Hash for OnOffDefaultOn
Source§impl Ord for OnOffDefaultOn
impl Ord for OnOffDefaultOn
Source§fn cmp(&self, other: &OnOffDefaultOn) -> Ordering
fn cmp(&self, other: &OnOffDefaultOn) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OnOffDefaultOn
impl PartialEq for OnOffDefaultOn
Source§impl PartialOrd for OnOffDefaultOn
impl PartialOrd for OnOffDefaultOn
Source§impl ToCommand for OnOffDefaultOn
impl ToCommand for OnOffDefaultOn
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 command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()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 OnOffDefaultOn
impl StructuralPartialEq for OnOffDefaultOn
Auto Trait Implementations§
impl Freeze for OnOffDefaultOn
impl RefUnwindSafe for OnOffDefaultOn
impl Send for OnOffDefaultOn
impl Sync for OnOffDefaultOn
impl Unpin for OnOffDefaultOn
impl UnsafeUnpin for OnOffDefaultOn
impl UnwindSafe for OnOffDefaultOn
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