decode_response

Function decode_response 

Source
pub fn decode_response<T: Facet<'static>, E: Facet<'static>>(
    payload: &[u8],
) -> Result<T, CallError<E>>
Expand description

Decode a response payload into the expected type.

This is the core response decoding logic used by generated clients. It handles the wire format: [0] + value_bytes for Ok, [1, discriminant] + error_bytes for Err.

Returns Result<T, CallError<E>> with the decoded value or error.