Skip to content

Commit f8550a4

Browse files
committed
Add doc for impl From for Waker
1 parent 8a7048b commit f8550a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/libcore/task/wake.rs

+7
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ impl LocalWaker {
188188
}
189189

190190
impl From<LocalWaker> for Waker {
191+
/// Converts a [`LocalWaker`] into a [`Waker`].
192+
///
193+
/// This conversion forgets local waker and allocates a new waker with
194+
/// the same inner.
195+
///
196+
/// [`LocalWaker`]: struct.LocalWaker.html
197+
/// [`Waker`]: struct.Waker.html
191198
#[inline]
192199
fn from(local_waker: LocalWaker) -> Self {
193200
local_waker.0

0 commit comments

Comments
 (0)