aboutsummaryrefslogtreecommitdiff
path: root/embassy-traits/src/uart.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-12-19 07:50:33 +0000
committerGitHub <[email protected]>2021-12-19 07:50:33 +0000
commitfcb43caa36bcf2fb62ddd1c334c46bd6bc876a9e (patch)
tree34999dbc3d65d52367c46b0ac75aefc4b035cf5d /embassy-traits/src/uart.rs
parentad2f4694070104f8815563a0008141eec29c06cd (diff)
parente1545066e57fb072a59b1a93bf4c9bcbc3854cc2 (diff)
Merge #550
550: Some API documentation fixes in traits r=Dirbaio a=lulf Co-authored-by: Ulf Lilleengen <[email protected]>
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}