pub trait Sink {
// Required method
fn write(&mut self, conn: ConnId, bytes: &[u8]) -> usize;
// Provided method
fn closed(&mut self, conn: ConnId) { ... }
}Expand description
Where replies go.
One call per connection per batch, with however many replies are waiting.
The network reactor implements this over io_uring, a test implements it over
a Vec, and neither this module nor dispatch has to know which.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".