Skip to main content

RangeSource

Trait RangeSource 

Source
pub trait RangeSource {
    // Required method
    fn get(
        &mut self,
        start: u64,
        end: u64,
    ) -> Result<(Vec<u8>, u64), RangeError>;
}
Expand description

Bytes of one remote object, fetched a range at a time: an HTTP server, or an object in a store.

Required Methods§

Source

fn get(&mut self, start: u64, end: u64) -> Result<(Vec<u8>, u64), RangeError>

Bytes start..end of the object, fewer only where the object ends first, and the object’s whole length. start is inside the object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§