Skip to main content

parse_response

Function parse_response 

Source
pub fn parse_response(wire: &str) -> Result<Response, EnvelopeError>
Expand description

Parse a wire response frame into a Response.

Accepts (:id N :value V) or (:id N :error (:code sym :message "..." :detail "...")). Rejects frames containing both :value and :error simultaneously. This is the inverse of super::envelope::format_response.

Note: #f and NIL are reader-equivalent in nomiscript; both decode to Value::Nil. Bool(false) does not survive a round-trip through the wire.