Struct tartan_arch::x86::protection::TaskStateSegmentBitmaps

source ·
#[repr(C)]
pub struct TaskStateSegmentBitmaps<T>
where T: AsRef<[u8]> + AsMut<[u8]> + Eq + ?Sized,
{ pub interrupt_redirect: [u8; 32], pub io_permission: IOPermissionBitmap<T>, }
Available on x86 only.
Expand description

I/O permission map and interrupt redirect map, which are always located together in a task state segment (TSS).

Fields§

§interrupt_redirect: [u8; 32]

Indicates which handler to use for software-triggered interrupts in virtual real mode.

If bit N (bit N mod 8 of byte floor(N / 8)) is set, it indicates that an INT N in virtual real mode should be handled using the protected-mode mechanism rather than the process’s own interrupt table.

§io_permission: IOPermissionBitmap<T>

The IOPermissionBitmap for this task.

Trait Implementations§

source§

impl<T> Debug for TaskStateSegmentBitmaps<T>
where T: AsRef<[u8]> + AsMut<[u8]> + Eq + ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> PartialEq for TaskStateSegmentBitmaps<T>
where T: AsRef<[u8]> + AsMut<[u8]> + Eq + ?Sized + PartialEq,

source§

fn eq(&self, other: &TaskStateSegmentBitmaps<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> Eq for TaskStateSegmentBitmaps<T>
where T: AsRef<[u8]> + AsMut<[u8]> + Eq + ?Sized + Eq,

source§

impl<T> StructuralPartialEq for TaskStateSegmentBitmaps<T>
where T: AsRef<[u8]> + AsMut<[u8]> + Eq + ?Sized,

Auto Trait Implementations§

§

impl<T> Freeze for TaskStateSegmentBitmaps<T>
where T: Freeze + ?Sized,

§

impl<T> RefUnwindSafe for TaskStateSegmentBitmaps<T>
where T: RefUnwindSafe + ?Sized,

§

impl<T> Send for TaskStateSegmentBitmaps<T>
where T: Send + ?Sized,

§

impl<T> Sync for TaskStateSegmentBitmaps<T>
where T: Sync + ?Sized,

§

impl<T> Unpin for TaskStateSegmentBitmaps<T>
where T: Unpin + ?Sized,

§

impl<T> UnwindSafe for TaskStateSegmentBitmaps<T>
where T: UnwindSafe + ?Sized,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.