Trait tk_sendfile::IntoFileOpener [] [src]

pub trait IntoFileOpener: Send {
    type Opener: FileOpener + Send + 'static;
    fn into_file_opener(self) -> Self::Opener;
}

Trait that represents something that can be converted into a file FileOpener

This is very similar to IntoIterator or IntoFuture and used in similar way.

Note unlike methods in FileOpener itself this trait is executed in caller thread, not in disk thread.

Associated Types

The final type returned after conversion

Required Methods

Convert the type into a file opener

Implementors