pub(crate) async fn write_unit<S: EgressSink>(
unit: Pending,
send: &mut S,
) -> Result<Written, EgressError>Expand description
Write one popped unit.
A failing prefix write on a Terminal::Truncate is propagated rather
than swallowed: the caller mirrors it with propagate_stop, and the
reset it would have sent is moot once the peer has stopped us. A failing
reset is not propagated — it means the stream was already finished
or reset, so there is nothing left to report and nothing left to do.