[]Struct sunrise_kernel::i386::structures::idt::EntryOptions

pub struct EntryOptions(pub u8);

Represents the options field of an IDT entry.

Implementations

impl EntryOptions

fn gate_type(&self) -> GateType

Type of the interrupt handler. Its value determines the mechanism used to trigger the handler.

fn privilege_level(&self) -> PrivilegeLevel

fn is_present(&self) -> bool

fn set_is_present(&mut self, value: bool)

impl EntryOptions[src]

fn minimal() -> Self[src]

Creates a minimal options field with all the must-be-one bits set.

fn set_gate_type(&mut self, gate_type: GateType) -> &mut Self[src]

Set the kind of gate this IdtEntry represents.

pub fn set_privilege_level(&mut self, privlvl: PrivilegeLevel) -> &mut Self[src]

Set the required privilege level (DPL) for invoking the handler. If CPL < DPL, a general protection fault occurs.

pub fn set_present_interrupt(&mut self, present: bool) -> &mut Self[src]

Set or reset the preset bit.

pub fn set_present_task(&mut self, present: bool) -> &mut Self[src]

Set or reset the preset bit.

pub fn disable_interrupts(&mut self, disable: bool) -> &mut Self[src]

Let the CPU disable hardware interrupts when the handler is invoked. By default, interrupts are disabled on handler invocation.

Trait Implementations

impl<T> BitRange<T> for EntryOptions where
    u8: BitRange<T>, 

impl Clone for EntryOptions[src]

impl Copy for EntryOptions[src]

impl Debug for EntryOptions

Auto Trait Implementations

impl RefUnwindSafe for EntryOptions

impl Send for EntryOptions

impl Sync for EntryOptions

impl Unpin for EntryOptions

impl UnwindSafe for EntryOptions

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Bit for T where
    T: BitRange<u8>, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.