safety issue in Drive::prepare
withoutboats opened this issue · comments
It's possible to implement Drive::prepare as:
Poll::Ready(NonNull::dangling())
But ringbahn assumes it recieves a valid Completion from the driver. We can't make it a Box, because we can't let them drop it either. Probably we need to change the public API so the public opaque Completion type is a wrapper around the NonNull pointer, rather than exposing NonNull<Completion>
to users.