Skip to main content

RuntimeCallService

Trait RuntimeCallService 

Source
pub trait RuntimeCallService {
    // Required methods
    fn resolve(&self, name: &str) -> Option<usize>;
    fn invoke(
        &self,
        request: RuntimeCallRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Value, RuntimeError>> + 'static>>;

    // Provided method
    fn source_functions(&self, _source_id: SourceId) -> Vec<(String, usize)> { ... }
}

Required Methods§

Source

fn resolve(&self, name: &str) -> Option<usize>

Source

fn invoke( &self, request: RuntimeCallRequest, ) -> Pin<Box<dyn Future<Output = Result<Value, RuntimeError>> + 'static>>

Provided Methods§

Source

fn source_functions(&self, _source_id: SourceId) -> Vec<(String, usize)>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§