Skip to main content

stopped_outcome

Function stopped_outcome 

Source
fn stopped_outcome(
    outcome: Result<Option<VarInt>, StoppedError>,
) -> Result<(), TransportError>
Expand description

Map quinn’s stopped() result onto TransportError.

Ok(None) is quinn’s the send state is gone, which it reports both for a finished-and-acked stream and for one whose state it discarded; neither is an error, so both become Ok(()).