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§
fn status(&self) -> TaskStatus
Sourcefn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), TaskTerminatedError>>
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