fn stream_freed(&mut self, id: StreamId, half: StreamHalf) {
        if id.initiator() != self.side {
            let fully_free = id.dir() == Dir::Uni
                || match half {
                    StreamHalf::Send => !self.recv.contains_key(&id),
                    StreamHalf::Recv => !self.send.contains_key(&id),
                };
            if fully_free {
                self.alloc_remote_stream(id.dir());
            }
        }
        if half == StreamHalf::Send {
            self.send_streams -= 1;
        }
    }
/// Update counters for removal of a stream
Update counters for removal of a stream
Update counters for removal of a stream
fn stream_freed(&mut self, id: StreamId, half: StreamHalf) {
        if id.initiator() != self.side {
            let fully_free = id.dir() == Dir::Uni
                || match half {
                    StreamHalf::Send => !self.recv.contains_key(&id),
                    StreamHalf::Recv => !self.send.contains_key(&id),
                };
            if fully_free {
                self.alloc_remote_stream(id.dir());
            }
        }
        if half == StreamHalf::Send {
            self.send_streams -= 1;
        }
    }
fn stream_freed ( & mut self , id : StreamId , half : StreamHalf ) { if id . initiator ( ) != self . side { let fully_free = id . dir ( ) == Dir :: Uni || match half { StreamHalf :: Send => ! self . recv . contains_key ( & id ) , StreamHalf :: Recv => ! self . send . contains_key ( & id ) , } ; if fully_free { self . alloc_remote_stream ( id . dir ( ) ) ; } } if half == StreamHalf :: Send { self . send_streams -= 1 ; } }
Update counters for removal of a stream
Update counters for removal of a stream
&mut self
id
StreamId
half
StreamHalf