pub type BoxDeviceLostCallback = Box<dyn FnOnce(DeviceLostReason, String) + Send + 'static>;
send_sync
struct BoxDeviceLostCallback(/* private fields */);