Skip to main content

PollableSocket

Trait PollableSocket 

Source
pub trait PollableSocket: Socket {
    // Required methods
    fn poll_readable(&self, ctx: &mut Context<'_>) -> Poll<Result<(), EspError>>;
    fn poll_writable(&self, ctx: &mut Context<'_>) -> Poll<Result<(), EspError>>;
}

Required Methods§

Source

fn poll_readable(&self, ctx: &mut Context<'_>) -> Poll<Result<(), EspError>>

Source

fn poll_writable(&self, ctx: &mut Context<'_>) -> Poll<Result<(), EspError>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§