Lines Matching refs:Wake
23157 /// use std::task::{Context, Poll, Wake};
23163 /// impl Wake for ThreadWaker {
23193 pub trait Wake {
23194 /// Wake this task.
23198 /// Wake this task without consuming the waker.
23204 /// [`wake`]: Wake::wake
23212 impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
23213 /// Use a `Wake`-able type as a `Waker`.
23224 impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for RawWaker {
23225 /// Use a `Wake`-able type as a `RawWaker`.
23239 fn raw_waker<W: Wake + Send + Sync + 'static>(waker: Arc<W>) -> RawWaker {
23241 unsafe fn clone_waker<W: Wake + Send + Sync + 'static>(waker: *const ()) -> RawWaker {
23249 // Wake by value, moving the Arc into the Wake::wake function
23250 unsafe fn wake<W: Wake + Send + Sync + 'static>(waker: *const ()) {
23252 <W as Wake>::wake(waker);
23255 // Wake by reference, wrap the waker in ManuallyDrop to avoid dropping it
23256 unsafe fn wake_by_ref<W: Wake + Send + Sync + 'static>(waker: *const ()) {
23258 <W as Wake>::wake_by_ref(&waker);
23262 unsafe fn drop_waker<W: Wake + Send + Sync + 'static>(waker: *const ()) {