Enum qapi_qmp::HostMemPolicy
source · [−]pub enum HostMemPolicy {
default,
preferred,
bind,
interleave,
}Variants
default
preferred
bind
interleave
Trait Implementations
sourceimpl Clone for HostMemPolicy
impl Clone for HostMemPolicy
sourcefn clone(&self) -> HostMemPolicy
fn clone(&self) -> HostMemPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for HostMemPolicy
impl Debug for HostMemPolicy
sourceimpl<'de> Deserialize<'de> for HostMemPolicy
impl<'de> Deserialize<'de> for HostMemPolicy
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Enum for HostMemPolicy
impl Enum for HostMemPolicy
fn discriminant(&self) -> usize
const COUNT: usize = 4usize
const VARIANTS: &'static [Self] = &[ HostMemPolicy::default, HostMemPolicy::preferred, HostMemPolicy::bind, HostMemPolicy::interleave, ]
const NAMES: &'static [&'static str] = &[ "default", "preferred", "bind", "interleave", ]
fn name(&self) -> &'static str
fn from_name(s: &str) -> Option<Self>
sourceimpl FromStr for HostMemPolicy
impl FromStr for HostMemPolicy
sourceimpl Hash for HostMemPolicy
impl Hash for HostMemPolicy
sourceimpl Ord for HostMemPolicy
impl Ord for HostMemPolicy
sourceimpl PartialEq<HostMemPolicy> for HostMemPolicy
impl PartialEq<HostMemPolicy> for HostMemPolicy
sourceimpl PartialOrd<HostMemPolicy> for HostMemPolicy
impl PartialOrd<HostMemPolicy> for HostMemPolicy
sourcefn partial_cmp(&self, other: &HostMemPolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &HostMemPolicy) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for HostMemPolicy
impl Serialize for HostMemPolicy
impl Copy for HostMemPolicy
impl Eq for HostMemPolicy
impl StructuralEq for HostMemPolicy
impl StructuralPartialEq for HostMemPolicy
Auto Trait Implementations
impl RefUnwindSafe for HostMemPolicy
impl Send for HostMemPolicy
impl Sync for HostMemPolicy
impl Unpin for HostMemPolicy
impl UnwindSafe for HostMemPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more