Add doc for impl From for Waker
This commit is contained in:
parent
8a7048b72b
commit
f8550a499f
1 changed files with 7 additions and 0 deletions
|
|
@ -188,6 +188,13 @@ impl LocalWaker {
|
|||
}
|
||||
|
||||
impl From<LocalWaker> for Waker {
|
||||
/// Converts a [`LocalWaker`] into a [`Waker`].
|
||||
///
|
||||
/// This conversion forgets local waker and allocates a new waker with
|
||||
/// the same inner.
|
||||
///
|
||||
/// [`LocalWaker`]: struct.LocalWaker.html
|
||||
/// [`Waker`]: struct.Waker.html
|
||||
#[inline]
|
||||
fn from(local_waker: LocalWaker) -> Self {
|
||||
local_waker.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue