[][src]Struct x86::bits64::segmentation::Descriptor64

#[repr(C, packed)]
pub struct Descriptor64 { /* fields omitted */ }

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.

Methods

impl Descriptor64[src]

pub const NULL: Descriptor64[src]

pub fn set_base_limit(&mut self, base: u64, limit: u64)[src]

Create a new segment, TSS or LDT descriptor by setting the three base and two limit fields.

pub fn set_selector_offset(&mut self, selector: SegmentSelector, offset: u64)[src]

Creates a new descriptor with selector and offset (for IDT Gate descriptors, e.g. Trap, Interrupts and Task gates)

pub fn set_ist(&mut self, index: u8)[src]

Sets the interrupt stack table index. The 3-bit IST index field that provides an offset into the IST section of the TSS. Using the IST mechanism, the processor loads the value pointed by an IST pointer into the RSP.

Trait Implementations

impl BuildDescriptor<Descriptor64> for DescriptorBuilder[src]

impl Copy for Descriptor64[src]

impl Debug for Descriptor64[src]

impl Clone for Descriptor64[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Descriptor64[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]