/// Reads the next message in the buffer, if such a message exists.
Reads the next message in the buffer, if such a message exists.
Reads the next message in the buffer if such a message exists .
fn read_message(&mut self) -> Option<Message> {
        if self.closed {
            return None;
        }
        self.messages.pop_front().map(|message| {
            self.length -= message.len();
            message
        })
    }
fn read_message ( & mut self ) -> Option < Message > { if self . closed { return None ; } self . messages . pop_front ( ) . map ( | message | { self . length -= message . len ( ) ; message } ) }
Reads the next message in the buffer, if such a message exists.
Reads the next message in the buffer if such a message exists .
&mut self