Skip to main content

parse_adapter_message

Function parse_adapter_message 

Source
pub fn parse_adapter_message(
    value: &Value,
    limits: &Limits,
) -> Result<(), ParseError>
Expand description

Validate one adapter → driver message.

Strict: an unknown field from an adapter is a protocol error, not an extension. See parse_driver_message for the other direction.

§Errors

Returns a ParseError whose code is bad-version, malformed or limit-exceeded.