Files
drone_core
bitfield
ffi
fib
heap
io
log
reg
sync
spsc
thr
drone_cortexm
drv
fib
map
reg
sv
swo
thr
drone_ctypes
drone_stm32_map
drone_stm32_map_periph_adc
drone_stm32_map_periph_dma
drone_stm32_map_periph_exti
drone_stm32_map_periph_gpio
drone_stm32_map_periph_i2c
drone_stm32_map_periph_rtc
drone_stm32_map_periph_spi
drone_stm32_map_periph_tim
drone_stm32_map_periph_uart
drone_stm32_map_pieces
drone_stm32_map_pieces_1
drone_stm32_map_pieces_10
drone_stm32_map_pieces_11
drone_stm32_map_pieces_12
drone_stm32_map_pieces_2
drone_stm32_map_pieces_3
drone_stm32_map_pieces_4
drone_stm32_map_pieces_5
drone_stm32_map_pieces_6
drone_stm32_map_pieces_7
drone_stm32_map_pieces_8
drone_stm32_map_pieces_9
futures
futures_channel
futures_core
futures_io
futures_sink
futures_task
futures_util
async_await
future
lock
sink
stream
futures_unordered
stream
buffer_unordered.rsbuffered.rschain.rschunks.rscollect.rsconcat.rscycle.rsenumerate.rsfilter.rsfilter_map.rsflatten.rsfold.rsfor_each.rsfor_each_concurrent.rsforward.rsfuse.rsinto_future.rsmap.rsmod.rsnext.rspeek.rsready_chunks.rsscan.rsselect_next_some.rsskip.rsskip_while.rssplit.rstake.rstake_until.rstake_while.rsthen.rsunzip.rszip.rs
try_stream
task
pin_project_lite
pin_utils
proc_macro_nested
typenum
>
1 2 3 4 5 6 7 8 9 10 11 12 13 14
use core::{future::Future, pin::Pin}; /// The `Read` trait allows for reading bytes from a source asynchronously. pub trait Read<'sess> { /// The error type returned by [`Read::read`]. type Error; /// Pull some bytes from this source into the specified buffer /// asynchronously, eventually returning how many bytes were read. fn read( &'sess mut self, buf: &'sess mut [u8], ) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'sess>>; }