Trait FileAsStringReader

Source
pub trait FileAsStringReader<Runtime>
where Runtime: HasFilePathType + HasErrorType,
{ // Required method fn read_file_as_string( runtime: &Runtime, file_path: &Runtime::FilePath, ) -> impl Future<Output = Result<String, Runtime::Error>> + Send; }

Required Methods§

Source

fn read_file_as_string( runtime: &Runtime, file_path: &Runtime::FilePath, ) -> impl Future<Output = Result<String, Runtime::Error>> + Send

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.

Implementors§

Source§

impl<Component, Runtime> FileAsStringReader<Runtime> for Component