pub fn complete(self) -> Result<Message> {
        match self.collector {
            IncompleteMessageCollector::Binary(v) => Ok(Message::Binary(v)),
            IncompleteMessageCollector::Text(t) => {
                let text = t.into_string()?;
                Ok(Message::Text(text))
            }
        }
    }
/// Convert an incomplete message into a complete one.
Convert an incomplete message into a complete one.
Convert an incomplete message into a complete one .
pub fn complete(self) -> Result<Message> {
        match self.collector {
            IncompleteMessageCollector::Binary(v) => Ok(Message::Binary(v)),
            IncompleteMessageCollector::Text(t) => {
                let text = t.into_string()?;
                Ok(Message::Text(text))
            }
        }
    }
pub fn complete ( self ) -> Result < Message > { match self . collector { IncompleteMessageCollector :: Binary ( v ) => Ok ( Message :: Binary ( v ) ) , IncompleteMessageCollector :: Text ( t ) => { let text = t . into_string ( ) ? ; Ok ( Message :: Text ( text ) ) } } }
Convert an incomplete message into a complete one.
Convert an incomplete message into a complete one .
self
self