Struct futures_fs::FsPool[][src]

pub struct FsPool { /* fields omitted */ }

A pool of threads to handle file IO.

Methods

impl FsPool
[src]

Creates a new FsPool, with the supplied number of threads.

Creates a new FsPool, from an existing Executor.

Note

The executor will be used to spawn tasks that can block the thread. It likely should not be an executor that is also handling light-weight tasks, but a dedicated thread pool.

The most common use of this constructor is to allow creating a single CpuPool for your application for blocking tasks, and sharing it with FsPool and any other things needing a thread pool.

Returns a Stream of the contents of the file at the supplied path.

Returns a Stream of the contents of the supplied file.

Returns a Sink to send bytes to be written to the file at the supplied path.

Returns a Sink to send bytes to be written to the supplied file.

Returns a Future that resolves when the target file is deleted.

Trait Implementations

impl Clone for FsPool
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for FsPool
[src]

Returns the "default value" for a type. Read more

impl Debug for FsPool
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for FsPool

impl Sync for FsPool