Struct x86_64::structures::idt::Entry [−][src]
#[repr(C)]pub struct Entry<F> { /* fields omitted */ }
An Interrupt Descriptor Table entry.
The generic parameter can either be HandlerFunc
or HandlerFuncWithErrCode
, depending
on the interrupt vector.
Methods
impl Entry<HandlerFunc>
[src]
impl Entry<HandlerFunc>
pub fn set_handler_fn(&mut self, handler: HandlerFunc) -> &mut EntryOptions
[src]
pub fn set_handler_fn(&mut self, handler: HandlerFunc) -> &mut EntryOptions
Set the handler function for the IDT entry and sets the present bit.
For the code selector field, this function uses the code segment selector currently active in the CPU.
The function returns a mutable reference to the entry's options that allows further customization.
impl Entry<HandlerFuncWithErrCode>
[src]
impl Entry<HandlerFuncWithErrCode>
pub fn set_handler_fn(
&mut self,
handler: HandlerFuncWithErrCode
) -> &mut EntryOptions
[src]
pub fn set_handler_fn(
&mut self,
handler: HandlerFuncWithErrCode
) -> &mut EntryOptions
Set the handler function for the IDT entry and sets the present bit.
For the code selector field, this function uses the code segment selector currently active in the CPU.
The function returns a mutable reference to the entry's options that allows further customization.
impl Entry<PageFaultHandlerFunc>
[src]
impl Entry<PageFaultHandlerFunc>
pub fn set_handler_fn(
&mut self,
handler: PageFaultHandlerFunc
) -> &mut EntryOptions
[src]
pub fn set_handler_fn(
&mut self,
handler: PageFaultHandlerFunc
) -> &mut EntryOptions
Set the handler function for the IDT entry and sets the present bit.
For the code selector field, this function uses the code segment selector currently active in the CPU.
The function returns a mutable reference to the entry's options that allows further customization.
Trait Implementations
impl<F: Clone> Clone for Entry<F>
[src]
impl<F: Clone> Clone for Entry<F>
fn clone(&self) -> Entry<F>
[src]
fn clone(&self) -> Entry<F>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<F: Copy> Copy for Entry<F>
[src]
impl<F: Copy> Copy for Entry<F>