You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @my-vegetable-has-exploded , lmr.as_mut_slice() will return a MappedRwLockWriteGuard but not a MappedRwLockReadGuard. Do You mean the cursor you get by std::io::Cursor::new(lmr.as_mut_slice()) has a type of Cursor<MappedRwLockWriteGuard<&mut [u8]>>, which is not able to write, so you want to add an API to return a MappedRwLockWriteGuard<Cursor<&mut [u8]>>?
async-rdma memory region need to use with lock_utilities::MappedRwLockReadGuard.
I want to append(this can be done by wrapping with std::io::cursor) some bytes to mr to avoid useless copy.
But we can't build a cursor with (MappedRwLockReadGuard), like
so, i think we can consider providing a MappedRwLockWriteGuard<Cursor<&mut [u8]>>.
If needed, i can open a pr to add it.
The text was updated successfully, but these errors were encountered: