Struct x86::shared::segmentation::SegmentDescriptor [] [src]

pub struct SegmentDescriptor {
    // some fields omitted
}

Entry for GDT or LDT. Provides size and location of a segment.

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 SegmentDescriptor
[src]

This is data-structure is a ugly mess thing so we provide some convenience function to program it.

const NULL: SegmentDescriptor = SegmentDescriptor{base1: 0, base2: 0, base3: 0, access: descriptor::Flags::BLANK, limit1: 0, limit2_flags: Flags::BLANK,}

fn new(base: u32, limit: u32, ty: Type, accessed: bool, dpl: PrivilegeLevel) -> SegmentDescriptor

Trait Implementations

impl Debug for SegmentDescriptor
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for SegmentDescriptor
[src]

fn clone(&self) -> SegmentDescriptor

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for SegmentDescriptor
[src]