[−][src]Struct x86::segmentation::DescriptorBuilder
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]
fn tss_descriptor(base: u64, limit: u64, available: bool) -> DescriptorBuilder
[src]
fn call_gate_descriptor(
selector: SegmentSelector,
offset: u16
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u16
) -> DescriptorBuilder
fn interrupt_descriptor(
selector: SegmentSelector,
offset: u16
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u16
) -> DescriptorBuilder
fn trap_gate_descriptor(
selector: SegmentSelector,
offset: u16
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u16
) -> DescriptorBuilder
impl GateDescriptorBuilder<u64> for DescriptorBuilder
[src]
fn tss_descriptor(base: u64, limit: u64, available: bool) -> DescriptorBuilder
[src]
fn call_gate_descriptor(
selector: SegmentSelector,
offset: u64
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u64
) -> DescriptorBuilder
fn interrupt_descriptor(
selector: SegmentSelector,
offset: u64
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u64
) -> DescriptorBuilder
fn trap_gate_descriptor(
selector: SegmentSelector,
offset: u64
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u64
) -> DescriptorBuilder
impl GateDescriptorBuilder<u32> for DescriptorBuilder
[src]
fn tss_descriptor(base: u64, limit: u64, available: bool) -> DescriptorBuilder
[src]
fn call_gate_descriptor(
selector: SegmentSelector,
offset: u32
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u32
) -> DescriptorBuilder
fn interrupt_descriptor(
selector: SegmentSelector,
offset: u32
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u32
) -> DescriptorBuilder
fn trap_gate_descriptor(
selector: SegmentSelector,
offset: u32
) -> DescriptorBuilder
[src]
selector: SegmentSelector,
offset: u32
) -> DescriptorBuilder
impl TaskGateDescriptorBuilder for DescriptorBuilder
[src]
fn task_gate_descriptor(selector: SegmentSelector) -> DescriptorBuilder
[src]
impl SegmentDescriptorBuilder<u32> for DescriptorBuilder
[src]
fn code_descriptor(
base: u32,
limit: u32,
cst: CodeSegmentType
) -> DescriptorBuilder
[src]
base: u32,
limit: u32,
cst: CodeSegmentType
) -> DescriptorBuilder
fn data_descriptor(
base: u32,
limit: u32,
dst: DataSegmentType
) -> DescriptorBuilder
[src]
base: u32,
limit: u32,
dst: DataSegmentType
) -> DescriptorBuilder
impl LdtDescriptorBuilder<u64> for DescriptorBuilder
[src]
fn ldt_descriptor(base: u64, limit: u64) -> DescriptorBuilder
[src]
impl LdtDescriptorBuilder<u32> for DescriptorBuilder
[src]
fn ldt_descriptor(base: u32, limit: u32) -> DescriptorBuilder
[src]
impl BuildDescriptor<Descriptor64> for DescriptorBuilder
[src]
fn finish(&self) -> Descriptor64
[src]
impl BuildDescriptor<Descriptor> for DescriptorBuilder
[src]
fn finish(&self) -> Descriptor
[src]
impl Debug for DescriptorBuilder
[src]
Auto Trait Implementations
impl Send for DescriptorBuilder
impl Sync for DescriptorBuilder
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,