pub fn ret_from_error(err: &TransportError) -> NrosRmwRetExpand description
Map a TransportError to the corresponding nros_rmw_ret_t code.
By-reference because TransportError carries a String on its
dynamic-diagnostic variant and is not Copy. The string itself is
dropped at the boundary — embedded RMW callers cannot afford a
thread-local error buffer.