nix
nix copied to clipboard
aio_suspend should take Pinned references
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.