Skip to main content

encode_app_error

Function encode_app_error 

Source
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.