/// Callback called from SPDK for pool create and import methods.
Callback called from SPDK for pool create and import methods.
Callback called from SPDK for pool create and import methods .
extern "C" fn pool_done_cb(
    sender_ptr: *mut c_void,
    _lvs: *mut spdk_lvol_store,
    errno: i32,
) {
    let sender =
        unsafe { Box::from_raw(sender_ptr as *mut oneshot::Sender<i32>) };
    sender.send(errno).expect("Receiver is gone");
}
extern " " fn pool_done_cb ( sender_ptr : * mut c_void , _lvs : * mut spdk_lvol_store , errno : i32 , ) { let sender = unsafe { Box :: from_raw ( sender_ptr as * mut oneshot :: Sender < i32 > ) } ; sender . send ( errno ) . expect ( " " ) ; }
Callback called from SPDK for pool create and import methods.
Callback called from SPDK for pool create and import methods .
sender_ptr
*mut c_void
_lvs
*mut spdk_lvol_store
errno
i32