Skip to main content

parse_wire

Function parse_wire 

Source
pub fn parse_wire(wire: &str) -> Result<WireValue, RenderError>
Expand description

Parse a wire reply into a WireValue.

The :value payload is returned as-is: a pair:* or entity:* result arrives as a structured list, a string stays Value::String(s). Callers of a string native that prints a list must call reparse_list on it.

Returns Err(RenderError::Server) when the frame contains :error.