We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9174d2 commit 941c8bbCopy full SHA for 941c8bb
src/futures/serial.rs
@@ -11,12 +11,12 @@ pub trait Read<Word> {
11
type Error;
12
13
/// The future associated with the `read` method.
14
- type ReadFuture<'a>: Future<Output=Result<Word, Self::Error>> + 'a
+ type ReadFuture<'a>: Future<Output=Result<(), Self::Error>> + 'a
15
where
16
Self: 'a;
17
18
- /// Reads a single word from the serial interface
19
- fn read<'a>(&'a mut self) -> Self::ReadFuture<'a>;
+ /// Reads words from the serial interface into the supplied slice.
+ fn read<'a>(&'a mut self, read: &'a mut [Word]) -> Self::ReadFuture<'a>;
20
}
21
22
/// Write half of a serial interface
0 commit comments