Trait IntoCompIo

Source
pub trait IntoCompIo: Sized {
    type CompIo;

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

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

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

Required Associated Types§

Source

type CompIo

The completion-based io type.

Required Methods§

Source

fn try_into_comp_io(self) -> Result<Self::CompIo, (Error, Self)>

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

Provided Methods§

Source

fn into_comp_io(self) -> Result<Self::CompIo>

Convert a poll-based io to a completion-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§