pub struct Pollable(/* private fields */);
Expand description
pollable
represents a single I/O event which may be ready, or not.
Implementations§
source§impl Pollable
impl Pollable
sourcepub fn block<'a, C: Invoke>(
wrpc__: &'a C,
cx__: C::Context,
self_: &'a ResourceBorrow<Pollable>,
) -> impl Future<Output = Result<()>> + Send + 'a
pub fn block<'a, C: Invoke>( wrpc__: &'a C, cx__: C::Context, self_: &'a ResourceBorrow<Pollable>, ) -> impl Future<Output = Result<()>> + Send + 'a
block
returns immediately if the pollable is ready, and otherwise
blocks until ready.
This function is equivalent to calling poll.poll
on a list
containing only this pollable.
Auto Trait Implementations§
impl Freeze for Pollable
impl RefUnwindSafe for Pollable
impl Send for Pollable
impl Sync for Pollable
impl Unpin for Pollable
impl UnwindSafe for Pollable
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