aboutsummaryrefslogtreecommitdiff
path: root/embassy-traits/src/uart.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-traits/src/uart.rs')
-rw-r--r--embassy-traits/src/uart.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-traits/src/uart.rs b/embassy-traits/src/uart.rs
index 755aee6d3..4984bc89c 100644
--- a/embassy-traits/src/uart.rs
+++ b/embassy-traits/src/uart.rs
@@ -12,6 +12,7 @@ pub trait Read {
12 where 12 where
13 Self: 'a; 13 Self: 'a;
14 14
15 /// Receive into the buffer until the buffer is full.
15 fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadFuture<'a>; 16 fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadFuture<'a>;
16} 17}
17 18
@@ -30,5 +31,6 @@ pub trait Write {
30 where 31 where
31 Self: 'a; 32 Self: 'a;
32 33
34 /// Write all bytes in `buf`.
33 fn write<'a>(&'a mut self, buf: &'a [u8]) -> Self::WriteFuture<'a>; 35 fn write<'a>(&'a mut self, buf: &'a [u8]) -> Self::WriteFuture<'a>;
34} 36}