Skip to main content

HostEventFuture

Trait HostEventFuture 

Source
pub trait HostEventFuture: Send {
    // Required methods
    fn subscribe(
        &mut self,
        self_: Resource<EventFuture>,
    ) -> impl Future<Output = Result<Resource<Pollable>>> + Send;
    fn finish(
        &mut self,
        self_: Resource<EventFuture>,
        debuggee: Resource<Debuggee>,
    ) -> impl Future<Output = Result<Event, Error>> + Send;
    fn drop(
        &mut self,
        rep: Resource<EventFuture>,
    ) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

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

Subscribe to this future, returning a wasi-io pollable.

Source

fn finish( &mut self, self_: Resource<EventFuture>, debuggee: Resource<Debuggee>, ) -> impl Future<Output = Result<Event, Error>> + Send

Consume this future, producing the resulting event. Blocks if not ready. The debuggee must be provided as well.

Source

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

Source§

async fn finish( &mut self, self_: Resource<EventFuture>, debuggee: Resource<Debuggee>, ) -> Result<Event>

Source§

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

Source§

async fn subscribe( &mut self, self_: Resource<EventFuture>, ) -> Result<Resource<DynPollable>>

Source§

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

Source§

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

Subscribe to this future, returning a wasi-io pollable.

Source§

fn finish( &mut self, self_: Resource<EventFuture>, debuggee: Resource<Debuggee>, ) -> impl Future<Output = Result<Event, Error>> + Send

Consume this future, producing the resulting event. Blocks if not ready. The debuggee must be provided as well.

Source§

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

Implementors§