pub trait RuntimeForeignService {
// Required method
fn invoke(
&self,
call: ForeignCall,
) -> Pin<Box<dyn Future<Output = Result<Value, RuntimeError>> + 'static>>;
}Required Methods§
fn invoke( &self, call: ForeignCall, ) -> Pin<Box<dyn Future<Output = Result<Value, RuntimeError>> + 'static>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".