Struct wasmrs_host::CallContext
source · pub struct CallContext { /* private fields */ }Expand description
A CallContext is a way to bucket calls together with the same memory and configuration.
Implementations§
source§impl CallContext
impl CallContext
sourcepub fn get_import(&self, namespace: &str, operation: &str) -> Result<u32, Error>
pub fn get_import(&self, namespace: &str, operation: &str) -> Result<u32, Error>
Get the import id for a given namespace and operation.
sourcepub fn get_export(&self, namespace: &str, operation: &str) -> Result<u32, Error>
pub fn get_export(&self, namespace: &str, operation: &str) -> Result<u32, Error>
Get the export id for a given namespace and operation.
sourcepub fn dump_operations(&self)
pub fn dump_operations(&self)
A utility function to dump the operation list.
Trait Implementations§
source§impl Debug for CallContext
impl Debug for CallContext
source§impl RSocket for CallContext
impl RSocket for CallContext
source§fn fire_and_forget(&self, payload: Payload) -> Mono<(), PayloadError>
fn fire_and_forget(&self, payload: Payload) -> Mono<(), PayloadError>
Fire and Forget interaction model of RSocket.
source§fn request_response(&self, payload: Payload) -> Mono<Payload, PayloadError>
fn request_response(&self, payload: Payload) -> Mono<Payload, PayloadError>
Request-Response interaction model of RSocket.
source§fn request_stream(&self, payload: Payload) -> FluxReceiver<Payload, PayloadError>
fn request_stream(&self, payload: Payload) -> FluxReceiver<Payload, PayloadError>
Request-Stream interaction model of RSocket.
source§fn request_channel(
&self,
stream: FluxReceiver<Payload, PayloadError>
) -> FluxReceiver<Payload, PayloadError>
fn request_channel(
&self,
stream: FluxReceiver<Payload, PayloadError>
) -> FluxReceiver<Payload, PayloadError>
Request-Channel interaction model of RSocket.