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
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more