Skip to main content

HostWasmFunc

Trait HostWasmFunc 

Source
pub trait HostWasmFunc: Send {
    // Required methods
    fn params(
        &mut self,
        self_: Resource<WasmFunc>,
        d: Resource<Debuggee>,
    ) -> impl Future<Output = Result<Vec<WasmType>, Error>> + Send;
    fn results(
        &mut self,
        self_: Resource<WasmFunc>,
        d: Resource<Debuggee>,
    ) -> impl Future<Output = Result<Vec<WasmType>, Error>> + Send;
    fn clone(
        &mut self,
        self_: Resource<WasmFunc>,
    ) -> impl Future<Output = Result<Resource<WasmFunc>>> + Send;
    fn drop(
        &mut self,
        rep: Resource<WasmFunc>,
    ) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

fn params( &mut self, self_: Resource<WasmFunc>, d: Resource<Debuggee>, ) -> impl Future<Output = Result<Vec<WasmType>, Error>> + Send

Get the parameter types.

Source

fn results( &mut self, self_: Resource<WasmFunc>, d: Resource<Debuggee>, ) -> impl Future<Output = Result<Vec<WasmType>, Error>> + Send

Get the result types.

Source

fn clone( &mut self, self_: Resource<WasmFunc>, ) -> impl Future<Output = Result<Resource<WasmFunc>>> + Send

Clone this handle.

Source

fn drop( &mut self, rep: Resource<WasmFunc>, ) -> impl Future<Output = Result<()>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl HostWasmFunc for ResourceTable

Source§

async fn params( &mut self, self_: Resource<Func>, d: Resource<Debuggee>, ) -> Result<Vec<WasmType>>

Source§

async fn results( &mut self, self_: Resource<Func>, d: Resource<Debuggee>, ) -> Result<Vec<WasmType>>

Source§

async fn clone(&mut self, self_: Resource<Func>) -> Result<Resource<Func>>

Source§

async fn drop(&mut self, rep: Resource<Func>) -> Result<()>

Source§

impl<_T: HostWasmFunc + ?Sized + Send> HostWasmFunc for &mut _T

Source§

fn params( &mut self, self_: Resource<WasmFunc>, d: Resource<Debuggee>, ) -> impl Future<Output = Result<Vec<WasmType>, Error>> + Send

Get the parameter types.

Source§

fn results( &mut self, self_: Resource<WasmFunc>, d: Resource<Debuggee>, ) -> impl Future<Output = Result<Vec<WasmType>, Error>> + Send

Get the result types.

Source§

fn clone( &mut self, self_: Resource<WasmFunc>, ) -> impl Future<Output = Result<Resource<WasmFunc>>> + Send

Clone this handle.

Source§

async fn drop(&mut self, rep: Resource<WasmFunc>) -> Result<()>

Implementors§