Skip to main content

BinaryMessageHandler

Type Alias BinaryMessageHandler 

Source
pub type BinaryMessageHandler = fn(handle: &PluginHandle, request: &[u8]) -> Result<Vec<u8>, PluginError>;
Expand description

Handler function type for binary message processing

Plugins that want to support binary transport must register handlers using this signature. The handler receives the request struct as raw bytes and must return response bytes (which will be wrapped in RbResponse).