pub trait IntoFileAccess: Send + Unpin + 'static {
    type Output: FileAccess;

    // Required method
    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§

source

type Output: FileAccess

Target type that implements FileAccess.

Required Methods§

source

fn into_file_access(self) -> Self::Output

Convert into a type that implements FileAccess.

Implementations on Foreign Types§

source§

impl IntoFileAccess for File

source§

impl IntoFileAccess for Cursor<Bytes>

§

type Output = Cursor<Bytes>

source§

fn into_file_access(self) -> Self::Output

Implementors§