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§
Required Methods§
Sourcefn try_into_comp_io(self) -> Result<Self::CompIo, (Error, Self)>
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§
Sourcefn into_comp_io(self) -> Result<Self::CompIo>
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.