#[repr(C, packed(1))]pub struct Descriptor64 { /* private fields */ }
Expand description
Entry for IDT, GDT or LDT.
See Intel 3a, Section 3.4.5 “Segment Descriptors”, and Section 3.5.2 “Segment Descriptor Tables in IA-32e Mode”, especially Figure 3-8.
Implementations§
Source§impl Descriptor64
impl Descriptor64
pub const NULL: Descriptor64
Sourcepub fn set_base_limit(&mut self, base: u64, limit: u64)
pub fn set_base_limit(&mut self, base: u64, limit: u64)
Create a new segment, TSS or LDT descriptor by setting the three base and two limit fields.
Sourcepub fn set_selector_offset(&mut self, selector: SegmentSelector, offset: u64)
pub fn set_selector_offset(&mut self, selector: SegmentSelector, offset: u64)
Creates a new descriptor with selector and offset (for IDT Gate descriptors, e.g. Trap, Interrupts and Task gates)
Trait Implementations§
Source§impl BuildDescriptor<Descriptor64> for DescriptorBuilder
impl BuildDescriptor<Descriptor64> for DescriptorBuilder
fn finish(&self) -> Descriptor64
Source§impl Clone for Descriptor64
impl Clone for Descriptor64
Source§fn clone(&self) -> Descriptor64
fn clone(&self) -> Descriptor64
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 Descriptor64
impl Debug for Descriptor64
Source§impl Default for Descriptor64
impl Default for Descriptor64
Source§fn default() -> Descriptor64
fn default() -> Descriptor64
Returns the “default value” for a type. Read more
impl Copy for Descriptor64
Auto Trait Implementations§
impl Freeze for Descriptor64
impl RefUnwindSafe for Descriptor64
impl Send for Descriptor64
impl Sync for Descriptor64
impl Unpin for Descriptor64
impl UnwindSafe for Descriptor64
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