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§
Required Methods§
Sourcefn try_into_poll_io(self) -> Result<Self::PollIo, (Error, Self)>
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§
Sourcefn into_poll_io(self) -> Result<Self::PollIo>
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.