pub struct Poller { /* private fields */ }Trait Implementations§
Source§impl PollableRegistry for Poller
impl PollableRegistry for Poller
type RegisteredPollable = Arc<Pollable>
Source§fn register_pollable(
&self,
cx: &mut Context<'_>,
pollable: Pollable,
) -> Self::RegisteredPollable
fn register_pollable( &self, cx: &mut Context<'_>, pollable: Pollable, ) -> Self::RegisteredPollable
Registers the given pollable to be polled. When the pollable is ready
the the given context’s waker should be called. The pollable must be
immediately dropped when the returned RegisteredPollable is dropped.
Auto Trait Implementations§
impl Freeze for Poller
impl RefUnwindSafe for Poller
impl Send for Poller
impl Sync for Poller
impl Unpin for Poller
impl UnsafeUnpin for Poller
impl UnwindSafe for Poller
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