I've changed the type to be what was proposed in the issue and then followed the compiler warnings to make rustc happy.
I've also added a free function map_buf which allows to map a function over the buffer on BufResult. Let me know if that's okay, but it made writing some code easier.
Why?
Solves https://github.com/tokio-rs/tokio-uring/issues/178
How?
I've changed the type to be what was proposed in the issue and then followed the compiler warnings to make rustc happy.
I've also added a free function
map_buf
which allows to map a function over the buffer onBufResult
. Let me know if that's okay, but it made writing some code easier.