Skip to main content

FileReadDyn

Trait FileReadDyn 

pub trait FileReadDyn:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn file_read_dyn<'a>(
        &'a self,
        path: &'a str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'a>>;
}
Available on crate feature reqsign only.
Expand description

FileReadDyn is the dyn version of FileRead.

Required Methods§

fn file_read_dyn<'a>( &'a self, path: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'a>>

Dyn version of FileRead::file_read.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<T> FileReadDyn for T
where T: FileRead + ?Sized,