File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ pub trait Wake {
8787
8888#[ stable( feature = "wake_trait" , since = "1.51.0" ) ]
8989impl < W : Wake + Send + Sync + ' static > From < Arc < W > > for Waker {
90+ /// Use a `Wake`-able type as a `Waker`.
91+ ///
92+ /// No heap allocations or atomic operations are used for this conversion.
9093 fn from ( waker : Arc < W > ) -> Waker {
9194 // SAFETY: This is safe because raw_waker safely constructs
9295 // a RawWaker from Arc<W>.
@@ -96,6 +99,9 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
9699
97100#[ stable( feature = "wake_trait" , since = "1.51.0" ) ]
98101impl < W : Wake + Send + Sync + ' static > From < Arc < W > > for RawWaker {
102+ /// Use a `Wake`-able type as a `RawWaker`.
103+ ///
104+ /// No heap allocations or atomic operations are used for this conversion.
99105 fn from ( waker : Arc < W > ) -> RawWaker {
100106 raw_waker ( waker)
101107 }
You can’t perform that action at this time.
0 commit comments