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
type Opener: FileOpener + Send + 'static
The final type returned after conversion
Required Methods
fn into_file_opener(self) -> Self::Opener
Convert the type into a file opener