Trait wasi_common::sched::WasiSched[][src]

pub trait WasiSched: Send + Sync {
    #[must_use]
    fn poll_oneoff<'a, 'life0, 'life1, 'async_trait>(
        &'life0 self,
        poll: &'life1 mut Poll<'a>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn sched_yield<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn sleep<'life0, 'async_trait>(
        &'life0 self,
        duration: Duration
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

Implementors