pub trait MachineCallback<'tcx, T>: VisitProvenance {
// Required method
fn call(
self: Box<Self>,
ecx: &mut InterpCx<'tcx, MiriMachine<'tcx>>,
arg: T,
) -> InterpResult<'tcx>;
}
Expand description
Trait for callbacks handling asynchronous machine operations.
Required Methods§
Sourcefn call(
self: Box<Self>,
ecx: &mut InterpCx<'tcx, MiriMachine<'tcx>>,
arg: T,
) -> InterpResult<'tcx>
fn call( self: Box<Self>, ecx: &mut InterpCx<'tcx, MiriMachine<'tcx>>, arg: T, ) -> InterpResult<'tcx>
The function to be invoked when the callback is fired.