Skip to main content

HostcallInterceptor

Trait HostcallInterceptor 

Source
pub trait HostcallInterceptor: Send + Sync {
    // Required method
    fn intercept(&self, request: &HostcallRequest) -> Option<HostcallOutcome>;
}
Expand description

Trait allowing tests to intercept hostcalls before they reach real dispatch. Return Some(outcome) to short-circuit, or None to fall through to real dispatch.

Required Methods§

Implementors§