Struct SelectorErrorCode
#[repr(transparent)]pub struct SelectorErrorCode {
flags: u64,
}Expand description
Describes an error code referencing a segment selector.
Fields§
§flags: u64Implementations§
§impl SelectorErrorCode
impl SelectorErrorCode
pub const fn new(value: u64) -> Option<SelectorErrorCode>
pub const fn new(value: u64) -> Option<SelectorErrorCode>
Create a SelectorErrorCode. Returns None is any of the reserved bits (16-64) are set.
pub const fn new_truncate(value: u64) -> SelectorErrorCode
pub const fn new_truncate(value: u64) -> SelectorErrorCode
Create a new SelectorErrorCode dropping any reserved bits (16-64).
pub fn external(&self) -> bool
pub fn external(&self) -> bool
If true, indicates that the exception occurred during delivery of an event external to the program, such as an interrupt or an earlier exception.
pub fn descriptor_table(&self) -> DescriptorTable
pub fn descriptor_table(&self) -> DescriptorTable
The descriptor table this error code refers to.
Trait Implementations§
§impl Clone for SelectorErrorCode
impl Clone for SelectorErrorCode
§fn clone(&self) -> SelectorErrorCode
fn clone(&self) -> SelectorErrorCode
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 moreimpl Copy for SelectorErrorCode
§impl Debug for SelectorErrorCode
impl Debug for SelectorErrorCode
impl Eq for SelectorErrorCode
§impl Hash for SelectorErrorCode
impl Hash for SelectorErrorCode
§impl PartialEq for SelectorErrorCode
impl PartialEq for SelectorErrorCode
impl StructuralPartialEq for SelectorErrorCode
Auto Trait Implementations§
impl Freeze for SelectorErrorCode
impl RefUnwindSafe for SelectorErrorCode
impl Send for SelectorErrorCode
impl Sync for SelectorErrorCode
impl Unpin for SelectorErrorCode
impl UnsafeUnpin for SelectorErrorCode
impl UnwindSafe for SelectorErrorCode
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
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> 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.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> ⓘ
Converts
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> ⓘ
Converts
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