File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ pub trait Wake {
87
87
88
88
#[ stable( feature = "wake_trait" , since = "1.51.0" ) ]
89
89
impl < 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.
90
93
fn from ( waker : Arc < W > ) -> Waker {
91
94
// SAFETY: This is safe because raw_waker safely constructs
92
95
// a RawWaker from Arc<W>.
@@ -96,6 +99,9 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
96
99
97
100
#[ stable( feature = "wake_trait" , since = "1.51.0" ) ]
98
101
impl < 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.
99
105
fn from ( waker : Arc < W > ) -> RawWaker {
100
106
raw_waker ( waker)
101
107
}
You can’t perform that action at this time.
0 commit comments