[−][src]Struct sunrise_bootstrap::gdt::DescriptorTableEntry
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]
base: u32,
limit: u32,
is_code: bool,
priv_level: PrivilegeLevel
) -> DescriptorTableEntry
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]
ty: SystemDescriptorTypes,
base: u32,
limit: u32,
priv_level: PrivilegeLevel
) -> DescriptorTableEntry
Creates an empty GDT descriptor, but with some flags set correctly
pub fn new_ldt(
base: &'static DescriptorTable,
priv_level: PrivilegeLevel
) -> DescriptorTableEntry
[src]
base: &'static DescriptorTable,
priv_level: PrivilegeLevel
) -> DescriptorTableEntry
Creates a new LDT descriptor.
pub fn new_tss(
base: &'static TssStruct,
priv_level: PrivilegeLevel
) -> DescriptorTableEntry
[src]
base: &'static TssStruct,
priv_level: PrivilegeLevel
) -> DescriptorTableEntry
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]
fn clone(&self) -> DescriptorTableEntry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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>,