async fn finish(
state: &Arc<TransportState>,
life: &mut ConnectionLife,
outcome: &Result<()>,
)Expand description
Everything a connection leaves behind, undone on every way out of it: a clean close, a failed read, and a connection the watchdog dropped.
This runs outside the connection future on purpose. A wedged connection is dropped rather than returned from, and the straight-line code after a future’s last await is code a drop never reaches.