pub trait ReadExt {
// Required methods
fn read_any_string(&self) -> impl Future<Output = Result<String>>;
fn read_bytes(&self) -> impl Future<Output = Result<Vec<u8>>>;
}
Expand description
Reads a file with some encoded string trait.
Required Methods§
Sourcefn read_any_string(&self) -> impl Future<Output = Result<String>>
fn read_any_string(&self) -> impl Future<Output = Result<String>>
Reads a file with some encoded string.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.