Skip to main content

RawResponseCallback

Type Alias RawResponseCallback 

Source
pub type RawResponseCallback = unsafe extern "C" fn(data: *const u8, len: usize, context: *mut c_void);
Expand description

Raw service-client response callback.

Invoked by the executor’s arena dispatch when a previously-sent service request has its response delivered. The C/C++ blocking wrappers install a one-shot trampoline that flips a static flag; async users register their own callback via the C API.

§Safety

  • data is valid for len bytes during the call.