Skip to main content

ret_from_error

Function ret_from_error 

Source
pub fn ret_from_error(err: &TransportError) -> NrosRmwRet
Expand 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.