From e1545066e57fb072a59b1a93bf4c9bcbc3854cc2 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Sun, 19 Dec 2021 08:49:19 +0100 Subject: Some API documentation fixes in traits --- embassy-traits/src/uart.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'embassy-traits/src/uart.rs') 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 { where Self: 'a; + /// Receive into the buffer until the buffer is full. fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadFuture<'a>; } @@ -30,5 +31,6 @@ pub trait Write { where Self: 'a; + /// Write all bytes in `buf`. fn write<'a>(&'a mut self, buf: &'a [u8]) -> Self::WriteFuture<'a>; } -- cgit