pub fn encode_app_error(
payload: &AppErrorPayload<'_>,
out: &mut [u8],
) -> Result<usize, WireError>Expand description
Encode an AppErrorPayload into out, returning the number of bytes written.
ยงErrors
Returns WireError::SerdeError if the payload does not fit in out.