Skip to main content

HandlerFuncType

Trait HandlerFuncType 

Source
pub unsafe trait HandlerFuncType {
    // Required method
    fn to_virt_addr(self) -> VirtAddr;
}
Expand description

A common trait for all handler functions usable in Entry.

§Safety

Implementors have to ensure that to_virt_addr returns a valid address.

Required Methods§

Source

fn to_virt_addr(self) -> VirtAddr

Get the virtual address of the handler function.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HandlerFuncType for DivergingHandlerFunc

Available on crate feature abi_x86_interrupt and (x86 or x86-64) only.
Source§

impl HandlerFuncType for DivergingHandlerFuncWithErrCode

Available on crate feature abi_x86_interrupt and (x86 or x86-64) only.
Source§

impl HandlerFuncType for HandlerFunc

Available on crate feature abi_x86_interrupt and (x86 or x86-64) only.
Source§

impl HandlerFuncType for HandlerFuncWithErrCode

Available on crate feature abi_x86_interrupt and (x86 or x86-64) only.
Source§

impl HandlerFuncType for PageFaultHandlerFunc

Available on crate feature abi_x86_interrupt and (x86 or x86-64) only.