Skip to main content

RawServiceRequestIdCallback

Type Alias RawServiceRequestIdCallback 

Source
pub type RawServiceRequestIdCallback = unsafe extern "C" fn(req: *const u8, req_len: usize, request_id: *mut RawRequestId, resp: *mut u8, resp_cap: usize, resp_len: *mut usize, context: *mut c_void) -> bool;
Expand description

Issue 2081 — RawServiceCallback that also receives the request’s RawRequestId — rclc’s rclc_service_callback_with_request_id_t argument order (request, request id, response), in CDR bytes.

§Safety

As RawServiceCallback; request_id is valid for the call only.