pub trait Handle {
// Provided methods
fn query(&self, _: TypeId) -> Option<Box<dyn Any>> { ... }
fn write(&self, _: &IoContext) { ... }
}Expand description
Control handle for transport-specific I/O tasks.
The handle is called synchronously by the connection state and must not block.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".