Trait iroh_io::AsyncStreamReader
source · pub trait AsyncStreamReader {
// Required methods
fn read_bytes(&mut self, len: usize) -> impl Future<Output = Result<Bytes>>;
fn read<const L: usize>(&mut self) -> impl Future<Output = Result<[u8; L]>>;
}Expand description
A non seekable reader, e.g. a network socket.
Required Methods§
Object Safety§
This trait is not object safe.