@@ -297,3 +297,36 @@ pub struct rdma_cm_event {
297
297
pub status : c_int ,
298
298
pub param : param_t ,
299
299
}
300
+
301
+ impl std:: fmt:: Debug for ibv_access_flags {
302
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
303
+ f. debug_tuple ( "ibv_access_flags" ) . field ( & self . 0 ) . finish ( )
304
+ }
305
+ }
306
+
307
+ impl std:: fmt:: Debug for ibv_event_type {
308
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
309
+ match self {
310
+ Self :: IBV_EVENT_CQ_ERR => write ! ( f, "IBV_EVENT_CQ_ERR" ) ,
311
+ Self :: IBV_EVENT_QP_FATAL => write ! ( f, "IBV_EVENT_QP_FATAL" ) ,
312
+ Self :: IBV_EVENT_QP_REQ_ERR => write ! ( f, "IBV_EVENT_QP_REQ_ERR" ) ,
313
+ Self :: IBV_EVENT_QP_ACCESS_ERR => write ! ( f, "IBV_EVENT_QP_ACCESS_ERR" ) ,
314
+ Self :: IBV_EVENT_COMM_EST => write ! ( f, "IBV_EVENT_COMM_EST" ) ,
315
+ Self :: IBV_EVENT_SQ_DRAINED => write ! ( f, "IBV_EVENT_SQ_DRAINED" ) ,
316
+ Self :: IBV_EVENT_PATH_MIG => write ! ( f, "IBV_EVENT_PATH_MIG" ) ,
317
+ Self :: IBV_EVENT_PATH_MIG_ERR => write ! ( f, "IBV_EVENT_PATH_MIG_ERR" ) ,
318
+ Self :: IBV_EVENT_DEVICE_FATAL => write ! ( f, "IBV_EVENT_DEVICE_FATAL" ) ,
319
+ Self :: IBV_EVENT_PORT_ACTIVE => write ! ( f, "IBV_EVENT_PORT_ACTIVE" ) ,
320
+ Self :: IBV_EVENT_PORT_ERR => write ! ( f, "IBV_EVENT_PORT_ERR" ) ,
321
+ Self :: IBV_EVENT_LID_CHANGE => write ! ( f, "IBV_EVENT_LID_CHANGE" ) ,
322
+ Self :: IBV_EVENT_PKEY_CHANGE => write ! ( f, "IBV_EVENT_PKEY_CHANGE" ) ,
323
+ Self :: IBV_EVENT_SM_CHANGE => write ! ( f, "IBV_EVENT_SM_CHANGE" ) ,
324
+ Self :: IBV_EVENT_SRQ_ERR => write ! ( f, "IBV_EVENT_SRQ_ERR" ) ,
325
+ Self :: IBV_EVENT_SRQ_LIMIT_REACHED => write ! ( f, "IBV_EVENT_SRQ_LIMIT_REACHED" ) ,
326
+ Self :: IBV_EVENT_QP_LAST_WQE_REACHED => write ! ( f, "IBV_EVENT_QP_LAST_WQE_REACHED" ) ,
327
+ Self :: IBV_EVENT_CLIENT_REREGISTER => write ! ( f, "IBV_EVENT_CLIENT_REREGISTER" ) ,
328
+ Self :: IBV_EVENT_GID_CHANGE => write ! ( f, "IBV_EVENT_GID_CHANGE" ) ,
329
+ Self :: IBV_EVENT_WQ_FATAL => write ! ( f, "IBV_EVENT_WQ_FATAL" ) ,
330
+ }
331
+ }
332
+ }
0 commit comments