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§
Sourcefn as_handler(&mut self) -> &mut H
fn as_handler(&mut self) -> &mut H
Gets the inner handler.