pub fn push(&mut self, message: RequestOrResponse) {
        if let RequestOrResponse::Response(response) = &message {
            *self
                .responses_size_bytes
                .entry(response.respondent)
                .or_default() += message.count_bytes();
        }
        self.stream.push(message);
    }
/// Appends the given message to the tail of the stream.
Appends the given message to the tail of the stream.
Appends the given message to the tail of the stream .
pub fn push(&mut self, message: RequestOrResponse) {
        if let RequestOrResponse::Response(response) = &message {
            *self
                .responses_size_bytes
                .entry(response.respondent)
                .or_default() += message.count_bytes();
        }
        self.stream.push(message);
    }
pub fn push ( & mut self , message : RequestOrResponse ) { if let RequestOrResponse :: Response ( response ) = & message { * self . responses_size_bytes . entry ( response . respondent ) . or_default ( ) += message . count_bytes ( ) ; } self . stream . push ( message ) ; }
Appends the given message to the tail of the stream.
Appends the given message to the tail of the stream .
&mut self
message
RequestOrResponse
&mut self
message
RequestOrResponse