Struct tartan_arch::x86_common::protection::SystemDescriptorType
source · pub struct SystemDescriptorType(/* private fields */);
Expand description
Discriminate types of segment descriptors that are not code or data.
Implementations§
source§impl SystemDescriptorType
impl SystemDescriptorType
sourcepub const TaskStateAvailable16Bit: Self = _
Available on x86 only.
pub const TaskStateAvailable16Bit: Self = _
A SegmentDescriptor
for a 16-bit task state segment (TSS) that is not
currently running or waiting on a call to another task.
sourcepub const LocalDescriptorTable: Self = _
pub const LocalDescriptorTable: Self = _
A SegmentDescriptor
for a segment that contains a local descriptor table.
sourcepub const TaskStateBusy16Bit: Self = _
Available on x86 only.
pub const TaskStateBusy16Bit: Self = _
A SegmentDescriptor
for a 16-bit task state segment (TSS) that is either
running or waiting on a call to another task.
sourcepub const CallGate16Bit: Self = _
Available on x86 only.
pub const CallGate16Bit: Self = _
A GateDescriptor
for a call to 16-bit code.
sourcepub const TaskGate: Self = _
Available on x86 only.
pub const TaskGate: Self = _
A GateDescriptor
for task switching.
sourcepub const InterruptGate16Bit: Self = _
Available on x86 only.
pub const InterruptGate16Bit: Self = _
A GateDescriptor
for a 16-bit interrupt handler.
sourcepub const TrapGate16Bit: Self = _
Available on x86 only.
pub const TrapGate16Bit: Self = _
A GateDescriptor
for a 16-bit trap handler.
sourcepub const TaskStateAvailable: Self = _
pub const TaskStateAvailable: Self = _
A SegmentDescriptor
for a 32/64-bit task state segment (TSS) that is not
currently running or waiting on a call to another task.
sourcepub const TaskStateBusy: Self = _
pub const TaskStateBusy: Self = _
A SegmentDescriptor
for a 32/64-bit task state segment (TSS) that is
either running or waiting on a call to another task.
sourcepub const CallGate: Self = _
pub const CallGate: Self = _
A GateDescriptor
for a call to 32/64-bit code.
sourcepub const InterruptGate: Self = _
pub const InterruptGate: Self = _
A GateDescriptor
for a 32/64-bit interrupt handler.
sourcepub const TrapGate: Self = _
pub const TrapGate: Self = _
A GateDescriptor
for a 32/64-bit interrupt handler.
A trap gate works identically to an interrupt gate, except that the processor
does not automatically clear FlagRegister::interrupt_enabled
when it
invokes the handler through a trap gate.
source§impl SystemDescriptorType
impl SystemDescriptorType
sourcepub fn is_gate(self) -> bool
pub fn is_gate(self) -> bool
Indicates that this is a GateDescriptor
.
Trait Implementations§
source§impl CEnum<u8> for SystemDescriptorType
impl CEnum<u8> for SystemDescriptorType
source§impl Clone for SystemDescriptorType
impl Clone for SystemDescriptorType
source§fn clone(&self) -> SystemDescriptorType
fn clone(&self) -> SystemDescriptorType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SystemDescriptorType
impl Debug for SystemDescriptorType
source§impl Default for SystemDescriptorType
impl Default for SystemDescriptorType
source§fn default() -> SystemDescriptorType
fn default() -> SystemDescriptorType
source§impl From<SystemDescriptorType> for u8
impl From<SystemDescriptorType> for u8
source§fn from(enum_value: SystemDescriptorType) -> Self
fn from(enum_value: SystemDescriptorType) -> Self
source§impl From<u8> for SystemDescriptorType
impl From<u8> for SystemDescriptorType
source§impl Hash for SystemDescriptorType
impl Hash for SystemDescriptorType
source§impl Ord for SystemDescriptorType
impl Ord for SystemDescriptorType
source§fn cmp(&self, other: &SystemDescriptorType) -> Ordering
fn cmp(&self, other: &SystemDescriptorType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SystemDescriptorType
impl PartialEq for SystemDescriptorType
source§impl PartialOrd for SystemDescriptorType
impl PartialOrd for SystemDescriptorType
impl Copy for SystemDescriptorType
impl Eq for SystemDescriptorType
impl StructuralPartialEq for SystemDescriptorType
Auto Trait Implementations§
impl Freeze for SystemDescriptorType
impl RefUnwindSafe for SystemDescriptorType
impl Send for SystemDescriptorType
impl Sync for SystemDescriptorType
impl Unpin for SystemDescriptorType
impl UnwindSafe for SystemDescriptorType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)