Struct x86_64::structures::idt::SelectorErrorCode
source · [−]#[repr(transparent)]pub struct SelectorErrorCode { /* private fields */ }
Expand description
Describes an error code referencing a segment selector.
Implementations
sourceimpl SelectorErrorCode
impl SelectorErrorCode
sourcepub const fn new(value: u64) -> Option<Self>
pub const fn new(value: u64) -> Option<Self>
Create a SelectorErrorCode. Returns None is any of the reserved bits (16-64) are set.
sourcepub const fn new_truncate(value: u64) -> Self
pub const fn new_truncate(value: u64) -> Self
Create a new SelectorErrorCode dropping any reserved bits (16-64).
sourcepub 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.
sourcepub fn descriptor_table(&self) -> DescriptorTable
pub fn descriptor_table(&self) -> DescriptorTable
The descriptor table this error code refers to.
Trait Implementations
sourceimpl Clone for SelectorErrorCode
impl Clone for SelectorErrorCode
sourcefn clone(&self) -> SelectorErrorCode
fn clone(&self) -> SelectorErrorCode
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 SelectorErrorCode
impl Debug for SelectorErrorCode
sourceimpl Hash for SelectorErrorCode
impl Hash for SelectorErrorCode
sourceimpl PartialEq<SelectorErrorCode> for SelectorErrorCode
impl PartialEq<SelectorErrorCode> for SelectorErrorCode
sourcefn eq(&self, other: &SelectorErrorCode) -> bool
fn eq(&self, other: &SelectorErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SelectorErrorCode) -> bool
fn ne(&self, other: &SelectorErrorCode) -> bool
This method tests for !=
.
impl Copy for SelectorErrorCode
impl Eq for SelectorErrorCode
impl StructuralEq for SelectorErrorCode
impl StructuralPartialEq for SelectorErrorCode
Auto Trait Implementations
impl RefUnwindSafe for SelectorErrorCode
impl Send for SelectorErrorCode
impl Sync for SelectorErrorCode
impl Unpin for SelectorErrorCode
impl UnwindSafe for SelectorErrorCode
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