pub trait AsyncFs {
type File: ChunkRead + Meta;
type OpenFuture: Future<Output = Result<Self::File>>;
// Required method
fn open(&self, path: PathBuf) -> Self::OpenFuture;
}
Expand description
trait for generic over async file systems.
Required Associated Types§
Required Methods§
Sourcefn open(&self, path: PathBuf) -> Self::OpenFuture
fn open(&self, path: PathBuf) -> Self::OpenFuture
open a file from given path.