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 · 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 SelectorErrorCode
impl Debug for SelectorErrorCode
Source§impl Hash for SelectorErrorCode
impl Hash for SelectorErrorCode
Source§impl PartialEq for SelectorErrorCode
impl PartialEq for SelectorErrorCode
impl Copy for SelectorErrorCode
impl Eq 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 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