@@ -42,7 +42,7 @@ use core::future::Future;
42
42
/// Asynchronously wait for a pin to be high.
43
43
pub trait WaitForHigh {
44
44
/// The future returned by the `wait_for_high` function.
45
- type WaitForHigh < ' a > : Future < Output =( ) > + ' a
45
+ type HighFuture < ' a > : Future < Output =( ) > + ' a
46
46
where
47
47
Self : ' a ;
48
48
@@ -52,13 +52,13 @@ pub trait WaitForHigh {
52
52
/// # Note for implementers
53
53
/// The pin may have switched back to low before the task was run after
54
54
/// being woken. The future should still resolve in that case.
55
- fn wait_for_high < ' a > ( & ' a mut self ) -> Self :: WaitForHigh < ' a > ;
55
+ fn wait_for_high < ' a > ( & ' a mut self ) -> Self :: HighFuture < ' a > ;
56
56
}
57
57
58
58
/// Asynchronously wait for a pin to be low.
59
59
pub trait WaitForLow {
60
60
/// The future returned by `wait_for_low`.
61
- type WaitForLow < ' a > : Future < Output = ( ) > + ' a
61
+ type LowFuture < ' a > : Future < Output = ( ) > + ' a
62
62
where
63
63
Self : ' a ;
64
64
@@ -68,39 +68,39 @@ pub trait WaitForLow {
68
68
/// # Note for implementers
69
69
/// The pin may have switched back to high before the task was run after
70
70
/// being woken. The future should still resolve in that case.
71
- fn wait_for_low < ' a > ( & ' a mut self ) -> Self :: WaitForLow < ' a > ;
71
+ fn wait_for_low < ' a > ( & ' a mut self ) -> Self :: LowFuture < ' a > ;
72
72
}
73
73
74
74
/// Wait for a rising edge (transition from low to high).
75
75
pub trait WaitForRisingEdge {
76
76
/// The future returned from `wait_for_rising_edge`.
77
- type WaitForRisingEdgeFuture < ' a > : Future < Output = ( ) > + ' a
77
+ type RisingFuture < ' a > : Future < Output = ( ) > + ' a
78
78
where
79
79
Self : ' a ;
80
80
81
81
/// Returns a future that resolves when this pin transitions from low to high.
82
- fn wait_for_rising_edge < ' a > ( & ' a mut self ) -> Self :: WaitForRisingEdgeFuture < ' a > ;
82
+ fn wait_for_rising_edge < ' a > ( & ' a mut self ) -> Self :: RisingFuture < ' a > ;
83
83
}
84
84
85
85
/// Wait for a falling edge (transition from high to low).
86
86
pub trait WaitForFallingEdge {
87
87
/// The future returned from `wait_for_falling_edge`.
88
- type WaitForFallingEdgeFuture < ' a > : Future < Output = ( ) > + ' a
88
+ type FallingFuture < ' a > : Future < Output = ( ) > + ' a
89
89
where
90
90
Self : ' a ;
91
91
92
92
/// Returns a future that resolves when this pin transitions from high to low.
93
- fn wait_for_falling_edge < ' a > ( & ' a mut self ) -> Self :: WaitForFallingEdgeFuture < ' a > ;
93
+ fn wait_for_falling_edge < ' a > ( & ' a mut self ) -> Self :: FallingFuture < ' a > ;
94
94
}
95
95
96
96
/// Wait for any edge (transition from low to high OR high to low).
97
97
pub trait WaitForAnyEdge {
98
98
/// The future returned from `wait_for_any_edge`.
99
- type WaitForAnyEdgeFuture < ' a > : Future < Output = ( ) > + ' a
99
+ type EdgeFuture < ' a > : Future < Output = ( ) > + ' a
100
100
where
101
101
Self : ' a ;
102
102
103
103
/// Returns a future that resolves when this pin undergoes any transition, e.g.
104
104
/// low to high OR high to low.
105
- fn wait_for_any_edge < ' a > ( & ' a mut self ) -> Self :: WaitForAnyEdgeFuture < ' a > ;
105
+ fn wait_for_any_edge < ' a > ( & ' a mut self ) -> Self :: EdgeFuture < ' a > ;
106
106
}
0 commit comments