pub fn decode<E: Aerro>(
status: Status,
) -> Result<ServiceFailure<E>, RemoteError>Expand description
Decode a tonic::Status into a ServiceFailure<E>.
Returns Err(RemoteError) when the envelope’s type ID is not in E::TYPE_IDS.
The returned RemoteError still carries the wire envelope so it can be re-encoded
or forwarded without data loss.