Skip to main content

decode_app_error

Function decode_app_error 

Source
pub fn decode_app_error(bytes: &[u8]) -> Result<AppErrorPayload<'_>, WireError>
Expand description

Decode an AppErrorPayload from bytes, borrowing the message slice.

ยงErrors

Returns WireError::SerdeError if bytes is malformed.