Type Definition trellis::mock::WriteCb [] [src]

type WriteCb = fn(_: i32, _: u8, _: &[u8]);

Callback for writes to device. The first argument is a counter that starts with 0 and is increment each time the callback function is called. The counter can be used to differentiate calls to the function in tests.