pub enum MismatchPolicy {
FallbackBaseline,
StrictMachine,
}Expand description
Runtime policy when the loaded profile does not match the host.
Variants§
FallbackBaseline
Print/return mismatch and use baseline fallback.
StrictMachine
Hard error — refuse to dispatch specialized variants.
Trait Implementations§
Source§impl Clone for MismatchPolicy
impl Clone for MismatchPolicy
Source§fn clone(&self) -> MismatchPolicy
fn clone(&self) -> MismatchPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MismatchPolicy
impl Debug for MismatchPolicy
Source§impl Default for MismatchPolicy
impl Default for MismatchPolicy
Source§impl<'de> Deserialize<'de> for MismatchPolicy
impl<'de> Deserialize<'de> for MismatchPolicy
Source§fn 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
Source§impl PartialEq for MismatchPolicy
impl PartialEq for MismatchPolicy
Source§fn eq(&self, other: &MismatchPolicy) -> bool
fn eq(&self, other: &MismatchPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MismatchPolicy
impl Serialize for MismatchPolicy
impl Copy for MismatchPolicy
impl Eq for MismatchPolicy
impl StructuralPartialEq for MismatchPolicy
Auto Trait Implementations§
impl Freeze for MismatchPolicy
impl RefUnwindSafe for MismatchPolicy
impl Send for MismatchPolicy
impl Sync for MismatchPolicy
impl Unpin for MismatchPolicy
impl UnsafeUnpin for MismatchPolicy
impl UnwindSafe for MismatchPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.