[][src]Function quicksilver::load_file

pub fn load_file(
    path: impl AsRef<Path>
) -> impl Future<Item = Vec<u8>, Error = QuicksilverError>

Create a Future that loads a file into an owned Vec of bytes

It exists for loading files from the server with Javascript on the web, and providing a unified API between desktop and the web when it comes to file loading