pub trait RangeReader {
    type Response: Read;

    // Required method
    fn read_range(
        &mut self,
        offset: u64,
        length: usize
    ) -> Result<Self::Response>;
}
Expand description

A trait for reading byte ranges from an HTTP resource.

Required Associated Types§

source

type Response: Read

The readable type returned by the range request.

Required Methods§

source

fn read_range(&mut self, offset: u64, length: usize) -> Result<Self::Response>

Read the specified range of bytes from this HTTP resource.

Implementors§