Trait IntoPollIo

Source
pub trait IntoPollIo: Sized {
    type PollIo;

    // Required method
    fn try_into_poll_io(self) -> Result<Self::PollIo, (Error, Self)>;

    // Provided method
    fn into_poll_io(self) -> Result<Self::PollIo> { ... }
}
Expand description

Convert a completion-based io to a poll-based io.

Required Associated Types§

Source

type PollIo

The poll-based io type.

Required Methods§

Source

fn try_into_poll_io(self) -> Result<Self::PollIo, (Error, Self)>

Convert a completion-based io to a poll-based io(able to get comp_io back).

Provided Methods§

Source

fn into_poll_io(self) -> Result<Self::PollIo>

Convert a completion-based io to a poll-based io.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§