Trait hyper_staticfile::vfs::IntoFileAccess
source · pub trait IntoFileAccess: Send + Unpin + 'static {
type Output: FileAccess;
fn into_file_access(self) -> Self::Output;
}
Expand description
Trait that converts a file handle into something that implements FileAccess
.
This trait is called when streaming starts, and exists as a separate step so that buffer allocation doesn’t have to happen until that point.
Required Associated Types§
sourcetype Output: FileAccess
type Output: FileAccess
Target type that implements FileAccess
.
Required Methods§
sourcefn into_file_access(self) -> Self::Output
fn into_file_access(self) -> Self::Output
Convert into a type that implements FileAccess
.