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§
Sourcefn params(
&mut self,
self_: Resource<WasmFunc>,
d: Resource<Debuggee>,
) -> impl Future<Output = Result<Vec<WasmType>, Error>> + Send
fn params( &mut self, self_: Resource<WasmFunc>, d: Resource<Debuggee>, ) -> impl Future<Output = Result<Vec<WasmType>, Error>> + Send
Get the parameter types.
Sourcefn results(
&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
Get the result types.
Sourcefn clone(
&mut self,
self_: Resource<WasmFunc>,
) -> impl Future<Output = Result<Resource<WasmFunc>>> + Send
fn clone( &mut self, self_: Resource<WasmFunc>, ) -> impl Future<Output = Result<Resource<WasmFunc>>> + Send
Clone this handle.
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
impl HostWasmFunc for ResourceTable
async fn params( &mut self, self_: Resource<Func>, d: Resource<Debuggee>, ) -> Result<Vec<WasmType>>
async fn results( &mut self, self_: Resource<Func>, d: Resource<Debuggee>, ) -> Result<Vec<WasmType>>
async fn clone(&mut self, self_: Resource<Func>) -> Result<Resource<Func>>
async fn drop(&mut self, rep: Resource<Func>) -> Result<()>
Source§impl<_T: HostWasmFunc + ?Sized + Send> HostWasmFunc for &mut _T
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
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
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
fn clone( &mut self, self_: Resource<WasmFunc>, ) -> impl Future<Output = Result<Resource<WasmFunc>>> + Send
Clone this handle.