pub trait FileRead:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn file_read<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
FileRead is used to read the file content entirely in Vec<u8>.
This could be used by Load to load the credential from the file.