[][src]Struct sunrise_bootstrap::gdt::DescriptorTableEntry

#[repr(transparent)]struct DescriptorTableEntry(u64);

Implementations

impl DescriptorTableEntry[src]

pub fn null_descriptor() -> DescriptorTableEntry[src]

pub fn new(
    base: u32,
    limit: u32,
    is_code: bool,
    priv_level: PrivilegeLevel
) -> DescriptorTableEntry
[src]

Creates an empty GDT descriptor, but with some flags set correctly

pub fn new_system(
    ty: SystemDescriptorTypes,
    base: u32,
    limit: u32,
    priv_level: PrivilegeLevel
) -> DescriptorTableEntry
[src]

Creates an empty GDT descriptor, but with some flags set correctly

pub fn new_ldt(
    base: &'static DescriptorTable,
    priv_level: PrivilegeLevel
) -> DescriptorTableEntry
[src]

Creates a new LDT descriptor.

pub fn new_tss(
    base: &'static TssStruct,
    priv_level: PrivilegeLevel
) -> DescriptorTableEntry
[src]

Creates a GDT descriptor pointing to a TSS segment

fn get_limit(self) -> u32[src]

fn set_limit(&mut self, newlimit: u32)[src]

fn get_base(self) -> u32[src]

fn set_base(&mut self, newbase: u32)[src]

pub fn get_accessed(self) -> bool[src]

pub fn is_readwrite_allowed(self) -> bool[src]

pub fn is_comformant(self) -> bool[src]

pub fn is_executable(self) -> bool[src]

pub fn get_ring_level(self) -> PrivilegeLevel[src]

pub fn get_present(self) -> bool[src]

pub fn is_4k_granularity(self) -> bool[src]

fn set_4k_granularity(&mut self, is: bool)[src]

pub fn is_32bit(self) -> bool[src]

Trait Implementations

impl Clone for DescriptorTableEntry[src]

impl Copy for DescriptorTableEntry[src]

impl Debug for DescriptorTableEntry[src]

Auto Trait Implementations

impl RefUnwindSafe for DescriptorTableEntry

impl Send for DescriptorTableEntry

impl Sync for DescriptorTableEntry

impl Unpin for DescriptorTableEntry

impl UnwindSafe for DescriptorTableEntry

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.