Trait pal_async::socket::PollReady

source ·
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§

source

fn poll_ready( &mut self, cx: &mut Context<'_>, events: PollEvents, ) -> Poll<PollEvents>

Polls an object for readiness.

Implementors§

source§

impl PollReady for PolledPipe

source§

impl PollReady for pal_async::unix::pipe::ReadHalf

source§

impl PollReady for pal_async::unix::pipe::WriteHalf

source§

impl<T: AsSockRef> PollReady for PolledSocket<T>

source§

impl<T: AsSockRef> PollReady for pal_async::socket::ReadHalf<T>

source§

impl<T: AsSockRef> PollReady for pal_async::socket::WriteHalf<T>