3
3
use core:: { future:: Future , mem:: MaybeUninit } ;
4
4
5
5
/// Async read + write
6
- pub trait ReadWrite < Word : ' static > {
6
+ pub trait ReadWrite < Word > {
7
7
/// Error type
8
8
type Error ;
9
9
@@ -18,7 +18,7 @@ pub trait ReadWrite<Word: 'static> {
18
18
}
19
19
20
20
/// Async read + write in place.
21
- pub trait ReadWriteInPlace < Word : ' static > {
21
+ pub trait ReadWriteInPlace < Word > {
22
22
/// Error type
23
23
type Error ;
24
24
@@ -33,7 +33,7 @@ pub trait ReadWriteInPlace<Word: 'static> {
33
33
}
34
34
35
35
/// Async write
36
- pub trait Write < W > {
36
+ pub trait Write < Word > {
37
37
/// Error type
38
38
type Error ;
39
39
@@ -43,11 +43,11 @@ pub trait Write<W> {
43
43
Self : ' a ;
44
44
45
45
/// Writes `words` to the slave, ignoring all the incoming words
46
- fn write < ' a > ( & ' a mut self , words : & ' a [ W ] ) -> Self :: WriteFuture < ' a > ;
46
+ fn write < ' a > ( & ' a mut self , words : & ' a [ Word ] ) -> Self :: WriteFuture < ' a > ;
47
47
}
48
48
49
49
/// Async read
50
- pub trait Read < W > {
50
+ pub trait Read < Word > {
51
51
/// Error type
52
52
type Error ;
53
53
@@ -59,5 +59,5 @@ pub trait Read<W> {
59
59
/// Reads words from the slave without specifying any data to write.
60
60
/// The SPI hardware will send data, though what data it sends is not defined
61
61
/// by this trait. Some hardware can configure what values (e.g. all zeroes, all ones), some cannot.
62
- fn read < ' a > ( & ' a mut self , words : & ' a mut [ MaybeUninit < W > ] ) -> Self :: ReadFuture < ' a > ;
62
+ fn read < ' a > ( & ' a mut self , words : & ' a mut [ MaybeUninit < Word > ] ) -> Self :: ReadFuture < ' a > ;
63
63
}
0 commit comments