Skip to main content

CustomFcHandler

Type Alias CustomFcHandler 

Source
pub type CustomFcHandler = Arc<dyn Fn(Vec<u8>, u8) -> CustomFcHandleResult + Send + Sync + 'static>;
Expand description

Slave-side handler: receives PDU payload (bytes after fc, before CRC) and the unit ID being addressed; must return the PDU payload of the response.

Aliased Typeยง

pub struct CustomFcHandler { /* private fields */ }