Open
Description
Currently, you can use RawWaker::new
to create a RawWaker
from a data pointer and vtable pointer, and you can use Waker::from_raw
to create a Waker
from a RawWaker
.
But there are no APIs to perform either conversion in the opposite direction. Why not?
Retrieving the data and vtable pointer would be particularly useful for a Future
that expects to be run on a particular executor: it could downcast the data pointer to perform custom operations on it, after verifying that the vtable pointer was an expected value.