wasmer_wasix::os::task

Trait VirtualTaskHandle

Source
pub trait VirtualTaskHandle:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn status(&self) -> TaskStatus;
    fn poll_ready(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Result<(), TaskTerminatedError>>;
    fn poll_finished(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Result<ExitCode, Arc<WasiRuntimeError>>>;
}

Required Methods§

Source

fn status(&self) -> TaskStatus

Source

fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), TaskTerminatedError>>

Polls to check if the process is ready yet to receive commands

Source

fn poll_finished( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<ExitCode, Arc<WasiRuntimeError>>>

Implementors§