pub enum Overcommit {
MemLock(OnOffOnfault),
CpuPm(OnOff),
}Expand description
Host overcommit hints for QEMU.
Variants§
MemLock(OnOffOnfault)
CpuPm(OnOff)
Trait Implementations§
Source§impl Arbitrary for Overcommit
impl Arbitrary for Overcommit
Source§type Parameters = (<OnOffOnfault as Arbitrary>::Parameters, <OnOff as Arbitrary>::Parameters)
type Parameters = (<OnOffOnfault as Arbitrary>::Parameters, <OnOff as Arbitrary>::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<Map<<OnOffOnfault as Arbitrary>::Strategy, fn(OnOffOnfault) -> Overcommit>>), (u32, Arc<Map<<OnOff as Arbitrary>::Strategy, fn(OnOff) -> Overcommit>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<OnOffOnfault as Arbitrary>::Strategy, fn(OnOffOnfault) -> Overcommit>>), (u32, Arc<Map<<OnOff as Arbitrary>::Strategy, fn(OnOff) -> Overcommit>>))>
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 Overcommit
impl Clone for Overcommit
Source§fn clone(&self) -> Overcommit
fn clone(&self) -> Overcommit
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 Overcommit
impl Debug for Overcommit
Source§impl FromStr for Overcommit
impl FromStr for Overcommit
Source§impl Hash for Overcommit
impl Hash for Overcommit
Source§impl Ord for Overcommit
impl Ord for Overcommit
Source§fn cmp(&self, other: &Overcommit) -> Ordering
fn cmp(&self, other: &Overcommit) -> 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 Overcommit
impl PartialEq for Overcommit
Source§impl PartialOrd for Overcommit
impl PartialOrd for Overcommit
Source§impl ToCommand for Overcommit
impl ToCommand for Overcommit
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 Overcommit
impl StructuralPartialEq for Overcommit
Auto Trait Implementations§
impl Freeze for Overcommit
impl RefUnwindSafe for Overcommit
impl Send for Overcommit
impl Sync for Overcommit
impl Unpin for Overcommit
impl UnsafeUnpin for Overcommit
impl UnwindSafe for Overcommit
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