websocket_base::ws::util

Function bytes_to_string

Source
pub fn bytes_to_string(data: &[u8]) -> Result<String, Utf8Error>
Expand description

Transforms a u8 slice into an owned String