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§
fn poll_readable(&self, ctx: &mut Context<'_>) -> Poll<Result<(), EspError>>
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".