Struct tk_sendfile::DiskPool
[−]
[src]
pub struct DiskPool(_);
A reference to a thread pool for disk operations
Methods
impl DiskPool[src]
fn new() -> DiskPool
Create a disk pool with default configuration
fn open<F>(&self, file: F) -> BoxFuture<Sendfile<F::Opener>, Error> where F: IntoFileOpener + Send + Sized + 'static
Start a file send operation
fn send<F, D>(&self, file: F, destination: D) -> BoxFuture<D, Error> where F: IntoFileOpener + Send + Sized + 'static, D: Destination + Send + Sized + 'static
A shortcut method to send whole file without headers
Trait Implementations
impl Clone for DiskPool[src]
fn clone(&self) -> DiskPool
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more