Open FujiZ opened 2 weeks ago
We may need to return a reference to the WorkCompletion in this case, so https://stackoverflow.com/questions/68606470/how-to-return-a-reference-when-implementing-an-iterator might be helpful.
https://github.com/RDMA-Rust/sideway/pull/22/commits/9e0c959cfac8a8128840aba9f6ae7850ba3c4cf6, for cq_ex
, there is no real WorkCompletion object, all wr_id
, opcode
things are got from cq_ex
or function calls.
That would be pretty different for basic cq
.
Consider defining an iterator style poll CQ interface, which is more idiomatic and may be able to unify the old-style
ibv_poll_cq
interface with the newibv_start_poll
interface.