Skip to main content

RawServiceCallback

Type Alias RawServiceCallback 

Source
pub type RawServiceCallback = unsafe extern "C" fn(*const u8, usize, *mut u8, usize, *mut usize, *mut c_void) -> bool;
Expand description

Raw service callback that receives and produces CDR bytes.

ยงSafety

  • req is valid for req_len bytes
  • resp is valid for resp_cap bytes (writable)
  • resp_len is a valid pointer to write the response length

Returns true if the request was handled successfully.