futures-fs

Crates.iofutures-fs
lib.rsfutures-fs
version0.0.5
sourcesrc
created_at2017-02-23 18:47:08.975291
updated_at2018-10-09 19:47:45.38874
descriptionA Futures implementation for File System operations
homepage
repositoryhttps://github.com/seanmonstar/futures-fs
max_upload_size
id8654
size32,291
Sean McArthur (seanmonstar)

documentation

https://docs.rs/futures-fs

README

futures-fs

Travis Build Status crates.io docs.rs

Access File System operations off-thread, using Futures and Streams.

Usage

let fs = FsPool::default();

// our source file
let read = fs.read("/home/sean/foo.txt", Default::default());

// default writes options to create a new file
let write = fs.write("/home/sean/out.txt", Default::default());

// block this thread!
// the reading and writing however will happen off-thread
read.forward(write).wait()
    .expect("IO error piping foo.txt to out.txt");
Commit count: 38

cargo fmt