Struct x86_64::structures::idt::SelectorErrorCode
source · pub struct SelectorErrorCode { /* private fields */ }
Expand description
Describes an error code referencing a segment selector.
Implementations§
source§impl 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§
source§impl Clone for SelectorErrorCode
impl Clone for SelectorErrorCode
source§fn clone(&self) -> SelectorErrorCode
fn clone(&self) -> SelectorErrorCode
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SelectorErrorCode
impl Debug for SelectorErrorCode
source§impl Hash for SelectorErrorCode
impl Hash for SelectorErrorCode
source§impl PartialEq for SelectorErrorCode
impl PartialEq for SelectorErrorCode
source§fn 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 ==
.