Skip to main content

HostWasmException

Trait HostWasmException 

Source
pub trait HostWasmException: Send {
    // Required methods
    fn get_tag(
        &mut self,
        self_: Resource<WasmException>,
        d: Resource<Debuggee>,
    ) -> impl Future<Output = Result<Resource<WasmTag>>> + Send;
    fn get_values(
        &mut self,
        self_: Resource<WasmException>,
        d: Resource<Debuggee>,
    ) -> impl Future<Output = Result<Vec<Resource<WasmValue>>, Error>> + Send;
    fn clone(
        &mut self,
        self_: Resource<WasmException>,
        d: Resource<Debuggee>,
    ) -> impl Future<Output = Result<Resource<WasmException>>> + Send;
    fn make(
        &mut self,
        d: Resource<Debuggee>,
        tag: Resource<WasmTag>,
        values: Vec<Resource<WasmValue>>,
    ) -> impl Future<Output = Result<Resource<WasmException>, Error>> + Send;
    fn drop(
        &mut self,
        rep: Resource<WasmException>,
    ) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

fn get_tag( &mut self, self_: Resource<WasmException>, d: Resource<Debuggee>, ) -> impl Future<Output = Result<Resource<WasmTag>>> + Send

Get the tag of this exception.

Source

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

Get the payload values of this exception.

Source

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

Clone this reference.

Source

fn make( &mut self, d: Resource<Debuggee>, tag: Resource<WasmTag>, values: Vec<Resource<WasmValue>>, ) -> impl Future<Output = Result<Resource<WasmException>, Error>> + Send

Allocate a new exception.

Source

fn drop( &mut self, rep: Resource<WasmException>, ) -> 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 HostWasmException for ResourceTable

Source§

async fn get_tag( &mut self, self_: Resource<WasmException>, d: Resource<Debuggee>, ) -> Result<Resource<Tag>>

Source§

async fn get_values( &mut self, self_: Resource<WasmException>, d: Resource<Debuggee>, ) -> Result<Vec<Resource<WasmValue>>>

Source§

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

Source§

async fn make( &mut self, d: Resource<Debuggee>, tag: Resource<Tag>, values: Vec<Resource<WasmValue>>, ) -> Result<Resource<WasmException>>

Source§

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

Source§

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

Source§

fn get_tag( &mut self, self_: Resource<WasmException>, d: Resource<Debuggee>, ) -> impl Future<Output = Result<Resource<WasmTag>>> + Send

Get the tag of this exception.

Source§

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

Get the payload values of this exception.

Source§

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

Clone this reference.

Source§

fn make( &mut self, d: Resource<Debuggee>, tag: Resource<WasmTag>, values: Vec<Resource<WasmValue>>, ) -> impl Future<Output = Result<Resource<WasmException>, Error>> + Send

Allocate a new exception.

Source§

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

Implementors§