Skip to main content

read_text

Function read_text 

Source
pub fn read_text(payload: &[u8]) -> Result<String, CelerisError>
Expand description

Decodes a UTF-8 payload. It fails with CelerisError::Configuration when the payload is not valid UTF-8.