Skip to main content

StreamingInstanceExt

Trait StreamingInstanceExt 

Source
pub trait StreamingInstanceExt {
    // Required method
    fn call_streaming_function<'life0, 'life1, 'life2, 'async_trait, Params, Return>(
        &'life0 self,
        function_name: &'life1 str,
        params: &'life2 Params,
        stream: Arc<StreamingChannel2WayImpl>,
    ) -> Pin<Box<dyn Future<Output = Result<Return>> + Send + 'async_trait>>
       where Params: Serialize + ?Sized + Send + Sync + 'async_trait,
             Return: DeserializeOwned + 'static + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Extension methods for streaming with WebAssembly instances

Required Methods§

Source

fn call_streaming_function<'life0, 'life1, 'life2, 'async_trait, Params, Return>( &'life0 self, function_name: &'life1 str, params: &'life2 Params, stream: Arc<StreamingChannel2WayImpl>, ) -> Pin<Box<dyn Future<Output = Result<Return>> + Send + 'async_trait>>
where Params: Serialize + ?Sized + Send + Sync + 'async_trait, Return: DeserializeOwned + 'static + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Call a function with streaming data

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§