Struct x86::bits64::segmentation::Descriptor64
source · [−]#[repr(C, packed)]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
sourceimpl 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
sourceimpl BuildDescriptor<Descriptor64> for DescriptorBuilder
impl BuildDescriptor<Descriptor64> for DescriptorBuilder
fn finish(&self) -> Descriptor64
sourceimpl Clone for Descriptor64
impl Clone for Descriptor64
sourcefn clone(&self) -> Descriptor64
fn clone(&self) -> Descriptor64
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Descriptor64
impl Debug for Descriptor64
sourceimpl Default for Descriptor64
impl Default for Descriptor64
sourcefn default() -> Descriptor64
fn default() -> Descriptor64
Returns the “default value” for a type. Read more
impl Copy for Descriptor64
Auto Trait Implementations
impl RefUnwindSafe for Descriptor64
impl Send for Descriptor64
impl Sync for Descriptor64
impl Unpin for Descriptor64
impl UnwindSafe for Descriptor64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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