diff options
author | Alan Somers <asomers@gmail.com> | 2017-04-07 23:30:47 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2017-04-15 20:13:18 -0600 |
commit | d3ad3c775ce55612aa0a754e010899990673661b (patch) | |
tree | d82245435de3c965e1df5eeffe48c5658eeac6e9 /src/sys/event.rs | |
parent | 8c47de417e71d59b0248bc3df5886bc7c4410040 (diff) | |
download | nix-d3ad3c775ce55612aa0a754e010899990673661b.zip |
Add AioCb::from_boxed_slice
The existing AioCb constructors work for simple programs where
everything is stored on the stack. But in more complicated programs the
borrow checker can't prove that a buffer will outlive the AioCb that
references it. Fix this problem by introducting
AioCb::from_boxed_slice, which takes a reference-counted buffer.
Fixes #575
Diffstat (limited to 'src/sys/event.rs')
0 files changed, 0 insertions, 0 deletions