IntoFileOpener

Trait IntoFileOpener 

Source
pub trait IntoFileOpener: Send {
    type Opener: FileOpener + Send + 'static;

    // Required method
    fn into_file_opener(self) -> Self::Opener;
}
Expand description

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.

Required Associated Types§

Source

type Opener: FileOpener + Send + 'static

The final type returned after conversion

Required Methods§

Source

fn into_file_opener(self) -> Self::Opener

Convert the type into a file opener

Implementors§