File tree 5 files changed +8
-8
lines changed
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -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 HighFuture < ' a > : Future < Output = ( ) > + ' a
45
+ type HighFuture < ' a > : Future < Output = ( ) > + ' a
46
46
where
47
47
Self : ' a ;
48
48
Original file line number Diff line number Diff line change 16
16
//! Since 7-bit addressing is the mode of the majority of I2C devices,
17
17
//! `SevenBitAddress` has been set as default mode and thus can be omitted if desired.
18
18
19
- use core:: { future:: Future , mem:: MaybeUninit } ;
20
19
pub use crate :: blocking:: i2c:: { AddressMode , SevenBitAddress , TenBitAddress } ;
20
+ use core:: { future:: Future , mem:: MaybeUninit } ;
21
21
22
22
/// Async read
23
23
pub trait Read < A : AddressMode = SevenBitAddress > {
Original file line number Diff line number Diff line change 2
2
//!
3
3
//! This traits use `core::future::Future` and generic associated types.
4
4
5
+ pub mod delay;
6
+ pub mod digital;
5
7
pub mod i2c;
6
8
pub mod serial;
7
9
pub mod spi;
8
- pub mod delay;
9
- pub mod digital;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pub trait Read<Word> {
11
11
type Error ;
12
12
13
13
/// The future associated with the `read` method.
14
- type ReadFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
14
+ type ReadFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
15
15
where
16
16
Self : ' a ;
17
17
@@ -25,12 +25,12 @@ pub trait Write<Word> {
25
25
type Error ;
26
26
27
27
/// The future associated with the `write` method.
28
- type WriteFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
28
+ type WriteFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
29
29
where
30
30
Self : ' a ;
31
31
32
32
/// The future associated with the `flush` method.
33
- type FlushFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
33
+ type FlushFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
34
34
where
35
35
Self : ' a ;
36
36
Original file line number Diff line number Diff line change 412
412
413
413
pub mod blocking;
414
414
pub mod fmt;
415
- pub mod nb;
416
415
#[ cfg( feature = "unstable-futures" ) ]
417
416
pub mod futures;
417
+ pub mod nb;
418
418
419
419
mod private {
420
420
use crate :: blocking:: i2c:: { SevenBitAddress , TenBitAddress } ;
You can’t perform that action at this time.
0 commit comments