pub type OnMessage = Box<dyn Fn(u32, Vec<u8>) + Send + Sync + 'static>;
struct OnMessage(/* private fields */);