pub fn finish(&mut self, id: StreamId) -> Result<(), FinishError> {
        let stream = self.send.get_mut(&id).ok_or(FinishError::UnknownStream)?;
        let was_pending = stream.is_pending();
        stream.finish()?;
        if !was_pending {
            self.pending.push_back(id);
        }
        Ok(())
    }
/// Set the FIN bit in the next stream frame, generating an empty one if necessary
Set the FIN bit in the next stream frame, generating an empty one if necessary
Set the FIN bit in the next stream frame generating an empty one if necessary
pub fn finish(&mut self, id: StreamId) -> Result<(), FinishError> {
        let stream = self.send.get_mut(&id).ok_or(FinishError::UnknownStream)?;
        let was_pending = stream.is_pending();
        stream.finish()?;
        if !was_pending {
            self.pending.push_back(id);
        }
        Ok(())
    }
pub fn finish ( & mut self , id : StreamId ) -> Result < ( ) , FinishError > { let stream = self . send . get_mut ( & id ) . ok_or ( FinishError :: UnknownStream ) ? ; let was_pending = stream . is_pending ( ) ; stream . finish ( ) ? ; if ! was_pending { self . pending . push_back ( id ) ; } Ok ( ( ) ) }
Set the FIN bit in the next stream frame, generating an empty one if necessary
Set the FIN bit in the next stream frame generating an empty one if necessary
&mut self
id
StreamId