oa_gateway_owp::codec

Function parse_server

Source
pub fn parse_server(frame: &str) -> Result<ServerOp, ParseError>
Expand description

Parses one server text frame (+OK, -ERR, INFO, MSG).

ยงErrors

Returns a parse error if the frame is empty, the keyword is unknown, +OK has trailing text, or a field is missing or illegal.