Struct ::exo::Reader

Overview

An async reader for files or other potential huge amount of data. It allows to only read the data, which is needed, which saves memory and computing cost.

Methods

async fn read_line(self) -> Result

Read a single line from the Reader. Returns a Result<Option>

async fn read_to_string(self) -> Result

Read from the actual position of the reader to the end. Returns a Result

async fn read_to_end(self) -> Result

Read from the actual position of the reader to the end. Returns a Result<Vec>

async fn read_u8(self) -> Result

Read from the actual position of the reader a single Byte. Returns a Result<Vec>

async fn read_json(self) -> Result

Read from the actual position of the reader a json structure.