Struct wasi_common::sched::Poll
source · pub struct Poll<'a> { /* private fields */ }
Implementations§
source§impl<'a> Poll<'a>
impl<'a> Poll<'a>
pub fn new() -> Self
pub fn subscribe_monotonic_clock( &mut self, clock: &'a dyn WasiMonotonicClock, deadline: Instant, precision: Duration, ud: Userdata )
pub fn subscribe_read(&mut self, file: &'a dyn WasiFile, ud: Userdata)
pub fn subscribe_write(&mut self, file: &'a dyn WasiFile, ud: Userdata)
pub fn results(self) -> Vec<(SubscriptionResult, Userdata)>
pub fn is_empty(&self) -> bool
pub fn earliest_clock_deadline(&self) -> Option<&MonotonicClockSubscription<'a>>
pub fn rw_subscriptions<'b>( &'b mut self ) -> impl Iterator<Item = &'b mut Subscription<'a>>
Auto Trait Implementations§
impl<'a> Freeze for Poll<'a>
impl<'a> !RefUnwindSafe for Poll<'a>
impl<'a> Send for Poll<'a>
impl<'a> Sync for Poll<'a>
impl<'a> Unpin for Poll<'a>
impl<'a> !UnwindSafe for Poll<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more