pub trait PollReady {
// Required method
fn poll_ready(
&mut self,
cx: &mut Context<'_>,
events: PollEvents,
) -> Poll<PollEvents>;
}
Expand description
Trait for objects that can be polled for readiness.
Required Methods§
sourcefn poll_ready(
&mut self,
cx: &mut Context<'_>,
events: PollEvents,
) -> Poll<PollEvents>
fn poll_ready( &mut self, cx: &mut Context<'_>, events: PollEvents, ) -> Poll<PollEvents>
Polls an object for readiness.