RawWaker allows the implementor of a task executor to create a
which provides customized wakeup behavior.
It consists of a data pointer and a virtual function pointer table (vtable) that
customizes the behavior of the
pub fn new(data: *const (), vtable: &'static RawWakerVTable) -> RawWaker[src]
Creates a new
RawWaker from the provided
data pointer and
data pointer can be used to store arbitrary data as required
by the executor. This could be e.g. a type-erased pointer to an
that is associated with the task.
The value of this pointer will get passed to all functions that are part
vtable as the first parameter.
vtable customizes the behavior of a
Waker which gets created
RawWaker. For each operation on the
Waker, the associated
function in the
vtable of the underlying
RawWaker will be called.
impl StructuralPartialEq for RawWaker[src]
Auto Trait Implementations
impl RefUnwindSafe for RawWaker
impl UnwindSafe for RawWaker
type Error = Infallible
The type returned in the event of a conversion error.