[][src]Enum sunrise_kernel::i386::gdt::GdtIndex

#[repr(usize)]pub enum GdtIndex {
    Null,
    KCode,
    KData,
    KTls,
    KStack,
    UCode,
    UData,
    UTlsRegion,
    UTlsElf,
    UStack,
    LDT,
    TSS,
    FTSS,
    DescCount,
}

Index in the GDT of each segment descriptor.

Variants

Null

The index in the GDT of the null descriptor.

KCode

The index in the GDT of the Kernel code segment descriptor.

KData

The index in the GDT of the Kernel data segment descriptor.

KTls

The index in the GDT of the Kernel thread local storage ("cpu-locals") segment descriptor.

KStack

The index in the GDT of the Kernel stack segment descriptor.

UCode

The index in the GDT of the Userland code segment descriptor.

UData

The index in the GDT of the Userland data segment descriptor.

UTlsRegion

The index in the GDT of the Userland thread local storage segment descriptor.

UTlsElf

The index in the GDT of the Userland thread local storage segment descriptor.

UStack

The index in the GDT of the Userland stack segment descriptor.

LDT

The index in the GDT of the LDT descriptor.

TSS

The index in the GDT of the main TSS descriptor.

FTSS

The index in the GDT of the double fault TSS descriptor.

DescCount

The number of descriptors in the GDT.

Implementations

impl GdtIndex[src]

pub fn selector(self) -> SegmentSelector[src]

Turns a segment descriptor index to a segment selector.

The ring part of the selector will be 0b00 for K* segments, and 0b11 for U* segments.

Trait Implementations

impl Clone for GdtIndex[src]

impl Copy for GdtIndex[src]

impl Debug for GdtIndex[src]

Auto Trait Implementations

impl RefUnwindSafe for GdtIndex

impl Send for GdtIndex

impl Sync for GdtIndex

impl Unpin for GdtIndex

impl UnwindSafe for GdtIndex

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.