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§