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§
Sourcefn subscribe(
&mut self,
self_: Resource<EventFuture>,
) -> impl Future<Output = Result<Resource<Pollable>>> + Send
fn subscribe( &mut self, self_: Resource<EventFuture>, ) -> impl Future<Output = Result<Resource<Pollable>>> + Send
Subscribe to this future, returning a wasi-io pollable.
Sourcefn finish(
&mut self,
self_: Resource<EventFuture>,
debuggee: Resource<Debuggee>,
) -> impl Future<Output = Result<Event, Error>> + Send
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.
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
impl HostEventFuture for ResourceTable
Source§impl<_T: HostEventFuture + ?Sized + Send> HostEventFuture for &mut _T
impl<_T: HostEventFuture + ?Sized + Send> HostEventFuture for &mut _T
Source§fn subscribe(
&mut self,
self_: Resource<EventFuture>,
) -> impl Future<Output = Result<Resource<Pollable>>> + Send
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
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.