Trait BridgeHandler

Source
pub trait BridgeHandler<Driver, Os, T = ()>: BridgeDispatch<Driver, Os, T>
where Driver: VmiDriver, Os: VmiOs<Driver>,
{ const MAGIC: u32; const REQUEST: u16; const EMPTY: bool = false; const VERIFY_VALUE1: Option<u64> = None; const VERIFY_VALUE2: Option<u64> = None; const VERIFY_VALUE3: Option<u64> = None; const VERIFY_VALUE4: Option<u64> = None; }
Expand description

A bridge handler.

Required Associated Constants§

Source

const MAGIC: u32

The magic number.

Source

const REQUEST: u16

The request code.

Provided Associated Constants§

Source

const EMPTY: bool = false

Marker for an empty handler.

Set to true in the implementation for the () type.

Source

const VERIFY_VALUE1: Option<u64> = None

The first verification value.

§Architecture-specific
  • AMD64: RAX
Source

const VERIFY_VALUE2: Option<u64> = None

The second verification value.

§Architecture-specific
  • AMD64: RBX
Source

const VERIFY_VALUE3: Option<u64> = None

The third verification value.

§Architecture-specific
  • AMD64: RCX
Source

const VERIFY_VALUE4: Option<u64> = None

The fourth verification value.

§Architecture-specific
  • AMD64: RDX

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Driver, Os, T> BridgeHandler<Driver, Os, T> for ()
where Driver: VmiDriver, Os: VmiOs<Driver>,

Source§

const EMPTY: bool = true

Source§

const MAGIC: u32 = 0u32

Source§

const REQUEST: u16 = 0u16

Implementors§