pub trait Io<T>: Sized + Unpin {
// Required method
fn connect(
initializer: T,
) -> impl Future<Output = Result<Self, Error>> + 'static + Send;
// Provided method
fn reconnect(
initializer: T,
) -> impl Future<Output = Result<Self, Error>> + 'static + Send { ... }
}Expand description
Represents an I/O source capable of reconnecting
This trait is implemented for a number of types in the library, with the implementations placed behind feature flags
Required Methods§
Provided Methods§
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.