nix icon indicating copy to clipboard operation
nix copied to clipboard

aio_suspend should take Pinned references

Open asomers opened this issue 2 years ago • 0 comments
trafficstars

Just like aio_write, aio_suspend should only work on Pinned references. Right now it doesn't require that. Probably the best way to do it would be to create a trait like AsAiocbPinned with a method that returns a Pin<&libc::aiocb>, and implement that trait for all aiocb types.

asomers avatar Apr 03 '23 22:04 asomers