[][src]Struct x86::segmentation::DescriptorBuilder

pub struct DescriptorBuilder { /* fields omitted */ }

Makes building descriptors easier (hopefully).

Methods

impl DescriptorBuilder[src]

pub fn limit_granularity_4kb(self) -> DescriptorBuilder[src]

The segment limit is interpreted in 4-KByte units if this is set.

pub fn present(self) -> DescriptorBuilder[src]

Indicates whether the segment is present in memory (set) or not present (clear).

pub fn dpl(self, dpl: Ring) -> DescriptorBuilder[src]

Specifies the privilege level of the segment.

pub fn avl(self) -> DescriptorBuilder[src]

Toggle the AVL bit.

pub fn db(self) -> DescriptorBuilder[src]

Set default operation size (false for 16bit segment, true for 32bit segments).

pub fn l(self) -> DescriptorBuilder[src]

Set L bit if this descriptor is a 64-bit code segment. In IA-32e mode, bit 21 of the second doubleword of the segment descriptor indicates whether a code segment contains native 64-bit code. A value of 1 indicates instructions in this code segment are executed in 64-bit mode.

Trait Implementations

impl GateDescriptorBuilder<u16> for DescriptorBuilder[src]

impl GateDescriptorBuilder<u64> for DescriptorBuilder[src]

impl GateDescriptorBuilder<u32> for DescriptorBuilder[src]

impl TaskGateDescriptorBuilder for DescriptorBuilder[src]

impl SegmentDescriptorBuilder<u32> for DescriptorBuilder[src]

impl LdtDescriptorBuilder<u64> for DescriptorBuilder[src]

impl LdtDescriptorBuilder<u32> for DescriptorBuilder[src]

impl BuildDescriptor<Descriptor64> for DescriptorBuilder[src]

impl BuildDescriptor<Descriptor> for DescriptorBuilder[src]

impl Debug for DescriptorBuilder[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 = !

🔬 This is a nightly-only experimental API. (try_from)

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

🔬 This is a nightly-only experimental API. (try_from)

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]