Struct tartan_arch::x86_common::protection::SystemDescriptorType
source · #[repr(transparent)]pub struct SystemDescriptorType(_);
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<SystemDescriptorType> for SystemDescriptorType
impl PartialEq<SystemDescriptorType> for SystemDescriptorType
source§fn eq(&self, other: &SystemDescriptorType) -> bool
fn eq(&self, other: &SystemDescriptorType) -> bool
source§impl PartialOrd<SystemDescriptorType> for SystemDescriptorType
impl PartialOrd<SystemDescriptorType> for SystemDescriptorType
source§fn partial_cmp(&self, other: &SystemDescriptorType) -> Option<Ordering>
fn partial_cmp(&self, other: &SystemDescriptorType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more