Struct futures_fs::FsPool
[−]
[src]
pub struct FsPool { /* fields omitted */ }
A pool of threads to handle file IO.
Methods
impl FsPool
[src]
fn new(threads: usize) -> FsPool
[src]
Creates a new FsPool
, with the supplied number of threads.
fn read<P: AsRef<Path> + Send + 'static>(&self, path: P) -> FsReadStream
[src]
Returns a Stream
of the contents of the file at the supplied path.
fn write<P: AsRef<Path> + Send + 'static>(
&self,
path: P,
opts: WriteOptions
) -> FsWriteSink
[src]
&self,
path: P,
opts: WriteOptions
) -> FsWriteSink
Returns a Sink
to send bytes to be written to the file at the supplied path.
fn delete<P: AsRef<Path> + Send + 'static>(&self, path: P) -> FsFuture<()>
[src]
Returns a Future
that resolves when the target file is deleted.
Trait Implementations
impl Clone for FsPool
[src]
fn clone(&self) -> FsPool
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more