Struct Dr6Flags
#[repr(transparent)]pub struct Dr6Flags(<Dr6Flags as PublicFlags>::Internal);Expand description
Debug condition flags of the Dr6 register.
Tuple Fields§
§0: <Dr6Flags as PublicFlags>::InternalImplementations§
§impl Dr6Flags
impl Dr6Flags
pub const ACCESS_DETECTED: Dr6Flags
pub const ACCESS_DETECTED: Dr6Flags
Next instruction accesses one of the debug registers.
Enabled via Dr7Flags::GENERAL_DETECT_ENABLE.
pub const SWITCH: Dr6Flags
pub const SWITCH: Dr6Flags
Task switch.
Enabled via the debug trap flag in the TSS of the target task.
pub const RTM: Dr6Flags
pub const RTM: Dr6Flags
When clear, indicates a debug or breakpoint exception inside an RTM region.
Enabled via Dr7Flags::RESTRICTED_TRANSACTIONAL_MEMORY and the
RTM flag in the IA32_DEBUGCTL [Msr].
§impl Dr6Flags
impl Dr6Flags
pub const fn bits(&self) -> u64
pub const fn bits(&self) -> u64
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
pub const fn from_bits(bits: u64) -> Option<Dr6Flags>
pub const fn from_bits(bits: u64) -> Option<Dr6Flags>
Convert from a bits value.
This method will return None if any unknown bits are set.
pub const fn from_bits_truncate(bits: u64) -> Dr6Flags
pub const fn from_bits_truncate(bits: u64) -> Dr6Flags
Convert from a bits value, unsetting any unknown bits.
pub const fn from_bits_retain(bits: u64) -> Dr6Flags
pub const fn from_bits_retain(bits: u64) -> Dr6Flags
Convert from a bits value exactly.
pub fn from_name(name: &str) -> Option<Dr6Flags>
pub fn from_name(name: &str) -> Option<Dr6Flags>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
pub const fn intersects(&self, other: Dr6Flags) -> bool
pub const fn intersects(&self, other: Dr6Flags) -> bool
Whether any set bits in other are also set in self.
pub const fn contains(&self, other: Dr6Flags) -> bool
pub const fn contains(&self, other: Dr6Flags) -> bool
Whether all set bits in other are also set in self.
pub fn remove(&mut self, other: Dr6Flags)
pub fn remove(&mut self, other: Dr6Flags)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
pub fn toggle(&mut self, other: Dr6Flags)
pub fn toggle(&mut self, other: Dr6Flags)
The bitwise exclusive-or (^) of the bits in self and other.
pub fn set(&mut self, other: Dr6Flags, value: bool)
pub fn set(&mut self, other: Dr6Flags, value: bool)
Call insert when value is true or remove when value is false.
pub const fn intersection(self, other: Dr6Flags) -> Dr6Flags
pub const fn intersection(self, other: Dr6Flags) -> Dr6Flags
The bitwise and (&) of the bits in self and other.
pub const fn union(self, other: Dr6Flags) -> Dr6Flags
pub const fn union(self, other: Dr6Flags) -> Dr6Flags
The bitwise or (|) of the bits in self and other.
pub const fn difference(self, other: Dr6Flags) -> Dr6Flags
pub const fn difference(self, other: Dr6Flags) -> Dr6Flags
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
pub const fn symmetric_difference(self, other: Dr6Flags) -> Dr6Flags
pub const fn symmetric_difference(self, other: Dr6Flags) -> Dr6Flags
The bitwise exclusive-or (^) of the bits in self and other.
pub const fn complement(self) -> Dr6Flags
pub const fn complement(self) -> Dr6Flags
The bitwise negation (!) of the bits in self, truncating the result.
§impl Dr6Flags
impl Dr6Flags
pub const fn iter(&self) -> Iter<Dr6Flags> ⓘ
pub const fn iter(&self) -> Iter<Dr6Flags> ⓘ
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
pub const fn iter_names(&self) -> IterNames<Dr6Flags> ⓘ
pub const fn iter_names(&self) -> IterNames<Dr6Flags> ⓘ
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
§impl Dr6Flags
impl Dr6Flags
pub fn trap(n: DebugAddressRegisterNumber) -> Dr6Flags
pub fn trap(n: DebugAddressRegisterNumber) -> Dr6Flags
Returns the trap flag of the provided debug address register.
Trait Implementations§
§impl BitAndAssign for Dr6Flags
impl BitAndAssign for Dr6Flags
§fn bitand_assign(&mut self, other: Dr6Flags)
fn bitand_assign(&mut self, other: Dr6Flags)
The bitwise and (&) of the bits in self and other.
§impl BitOrAssign for Dr6Flags
impl BitOrAssign for Dr6Flags
§fn bitor_assign(&mut self, other: Dr6Flags)
fn bitor_assign(&mut self, other: Dr6Flags)
The bitwise or (|) of the bits in self and other.
§impl BitXorAssign for Dr6Flags
impl BitXorAssign for Dr6Flags
§fn bitxor_assign(&mut self, other: Dr6Flags)
fn bitxor_assign(&mut self, other: Dr6Flags)
The bitwise exclusive-or (^) of the bits in self and other.
impl Copy for Dr6Flags
impl Eq for Dr6Flags
§impl Extend<Dr6Flags> for Dr6Flags
impl Extend<Dr6Flags> for Dr6Flags
§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = Dr6Flags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = Dr6Flags>,
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)§impl Flags for Dr6Flags
impl Flags for Dr6Flags
§fn from_bits_retain(bits: u64) -> Dr6Flags
fn from_bits_retain(bits: u64) -> Dr6Flags
§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self> ⓘ
fn iter_names(&self) -> IterNames<Self> ⓘ
§fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
Self::FLAGS].§fn iter_equal_names(&self) -> IterEqualNames<Self> ⓘ
fn iter_equal_names(&self) -> IterEqualNames<Self> ⓘ
§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in self and other.§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in self and other.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert] when value is true or [Flags::remove] when value is false.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in self and other.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in self and other.§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in self, truncating the result.§impl FromIterator<Dr6Flags> for Dr6Flags
impl FromIterator<Dr6Flags> for Dr6Flags
§fn from_iter<T>(iterator: T) -> Dr6Flagswhere
T: IntoIterator<Item = Dr6Flags>,
fn from_iter<T>(iterator: T) -> Dr6Flagswhere
T: IntoIterator<Item = Dr6Flags>,
The bitwise or (|) of the bits in each flags value.
§impl IntoIterator for Dr6Flags
impl IntoIterator for Dr6Flags
§impl Ord for Dr6Flags
impl Ord for Dr6Flags
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialOrd for Dr6Flags
impl PartialOrd for Dr6Flags
impl StructuralPartialEq for Dr6Flags
§impl Sub for Dr6Flags
impl Sub for Dr6Flags
Auto Trait Implementations§
impl Freeze for Dr6Flags
impl RefUnwindSafe for Dr6Flags
impl Send for Dr6Flags
impl Sync for Dr6Flags
impl Unpin for Dr6Flags
impl UnsafeUnpin for Dr6Flags
impl UnwindSafe for Dr6Flags
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more