pub struct LocalWakerRef<'a> { /* fields omitted */ }
Create a new LocalWakerRef
from a LocalWaker
.
Note: this function is safe, but it is generally only used
from unsafe
contexts that need to create a LocalWaker
that is guaranteed not to outlive a particular lifetime.
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Borrows this LocalWaker
as a Waker
.
Waker
is nearly identical to LocalWaker
, but is threadsafe
(implements Send
and Sync
).
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Wake up the task associated with this LocalWaker
.
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Returns whether or not this LocalWaker
and other
LocalWaker
awaken the same task.
This function works on a best-effort basis, and may return false even
when the LocalWaker
s would awaken the same task. However, if this function
returns true, it is guaranteed that the LocalWaker
s will awaken the same
task.
This function is primarily used for optimization purposes.
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Returns whether or not this LocalWaker
and other
Waker
awaken the same task.
This function works on a best-effort basis, and may return false even
when the Waker
s would awaken the same task. However, if this function
returns true, it is guaranteed that the LocalWaker
s will awaken the same
task.
This function is primarily used for optimization purposes.
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more