[−][src]Enum sunrise_kernel::i386::gdt::GdtIndex
Index in the GDT of each segment descriptor.
Variants
The index in the GDT of the null descriptor.
The index in the GDT of the Kernel code segment descriptor.
The index in the GDT of the Kernel data segment descriptor.
The index in the GDT of the Kernel thread local storage ("cpu-locals") segment descriptor.
The index in the GDT of the Kernel stack segment descriptor.
The index in the GDT of the Userland code segment descriptor.
The index in the GDT of the Userland data segment descriptor.
The index in the GDT of the Userland thread local storage segment descriptor.
The index in the GDT of the Userland thread local storage segment descriptor.
The index in the GDT of the Userland stack segment descriptor.
The index in the GDT of the LDT descriptor.
The index in the GDT of the main TSS descriptor.
The index in the GDT of the double fault TSS descriptor.
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,