hv1_hypercall

Trait AsHandler

Source
pub trait AsHandler<H> {
    // Required method
    fn as_handler(&mut self) -> &mut H;
}
Expand description

Trait for getting the handler from the handler parameter passed to Dispatcher::dispatch.

This is useful when the handler parameter is a wrapper that applies a specific hypercall calling convention.

Required Methods§

Source

fn as_handler(&mut self) -> &mut H

Gets the inner handler.

Implementors§