pub trait IoStream {
// Required method
fn start(self, _: IoContext) -> Box<dyn Handle>;
}Expand description
An underlying transport that can be managed by Io.
start is called exactly once when the transport is
wrapped in Io. The implementation must start its read and write tasks,
use the supplied IoContext to exchange buffers and readiness state, and
return a handle that remains valid for the connection’s lifetime.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".