pub enum TaskRegister {}
Available on x86 or x86-64 only.
Expand description

TR: Contains a Selector referencing a SegmentDescriptor that points to the current task state segment (TSS).

Note that this type cannot be instantiated. It simply serves as a namespace for the get and set methods, which work on a Selector instance.

Implementations§

Retrieve the current value of this register

Update the register with the provided selector value.

The value must point to an entry in the global descriptor table (local == false) with one of the SystemDescriptorType::TaskState* types.

Safety

This register fundamentally affects memory accesses and can have an impact on memory safety.

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.