#[repr(transparent)]
pub struct SegmentDescriptorFlags(_);
Available on x86 or x86-64 only.
Expand description

Settings for SegmentDescriptors.

Implementations§

AVL: Ignored bit that can be used by the operating system.

Does not apply to call gates.

G: Indicates that the segment limit is in units of 4KB. Otherwise, it is in bytes.

AVL: Ignored bit that can be used by the operating system.

Does not apply to call gates.

AVL: Ignored bit that can be used by the operating system.

Does not apply to call gates.

G: Indicates that the segment limit is in units of 4KB. Otherwise, it is in bytes.

G: Indicates that the segment limit is in units of 4KB. Otherwise, it is in bytes.

Trait Implementations§

Construct a new bitfield type from its underlying representation
Unwrap the bitfield into its underlying representation
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
If this is a system descriptor, indicates which type. Read more
The processor sets this bit whenever a segment register points to this segment. Read more
If this is a code descriptor, indicates that the segment can be read. Otherwise, it is execute-only. Read more
If this is a data descriptor, indicates that this segment is writable. Read more
If this is a code descriptor, indicates that this segment can be executed with lower privileges than privilege_level. Read more
If this is a data descriptor, indicates that the segment expands toward lower addresses (stack-like) if its limit is changed. Read more
Indicates whether this is a code (true) or data (false) descriptor. Read more
S: Indicates that this is an application section descriptor if true. Otherwise, this is a system descriptor. Read more
DPL: The privilege level associated with the segment. Read more
P: Indicates that the segment is defined.
Available on x86-64 only.
L: If this is a code segment, indicates that it should be executed in 64-bit mode. Read more
D/B: Indicates that the segment uses 32-bit mode. Otherwise, it is 16-bit, unless code_mode_64 is set. Read more
If this is a system descriptor, indicates which type. Read more
If this is a system descriptor, indicates which type. Read more
The processor sets this bit whenever a segment register points to this segment. Read more
The processor sets this bit whenever a segment register points to this segment. Read more
If this is a code descriptor, indicates that the segment can be read. Otherwise, it is execute-only. Read more
If this is a code descriptor, indicates that the segment can be read. Otherwise, it is execute-only. Read more
If this is a data descriptor, indicates that this segment is writable. Read more
If this is a data descriptor, indicates that this segment is writable. Read more
If this is a code descriptor, indicates that this segment can be executed with lower privileges than privilege_level. Read more
If this is a code descriptor, indicates that this segment can be executed with lower privileges than privilege_level. Read more
If this is a data descriptor, indicates that the segment expands toward lower addresses (stack-like) if its limit is changed. Read more
If this is a data descriptor, indicates that the segment expands toward lower addresses (stack-like) if its limit is changed. Read more
Indicates whether this is a code (true) or data (false) descriptor. Read more
Indicates whether this is a code (true) or data (false) descriptor. Read more
S: Indicates that this is an application section descriptor if true. Otherwise, this is a system descriptor. Read more
S: Indicates that this is an application section descriptor if true. Otherwise, this is a system descriptor. Read more
DPL: The privilege level associated with the segment. Read more
DPL: The privilege level associated with the segment. Read more
P: Indicates that the segment is defined.
P: Indicates that the segment is defined.
Available on x86-64 only.
L: If this is a code segment, indicates that it should be executed in 64-bit mode. Read more
Available on x86-64 only.
L: If this is a code segment, indicates that it should be executed in 64-bit mode. Read more
D/B: Indicates that the segment uses 32-bit mode. Otherwise, it is 16-bit, unless code_mode_64 is set. Read more
D/B: Indicates that the segment uses 32-bit mode. Otherwise, it is 16-bit, unless code_mode_64 is set. Read more
Print this object’s bitfield values. Helper method for Debug implementations. Read more
Indicates that this is a GateDescriptor.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.