RandPuller

Trait RandPuller 

Source
pub trait RandPuller: Send + Clone {
    type Error: Send;

    // Required method
    fn pull(
        &mut self,
        range: &Range<u64>,
    ) -> impl TryStream<Ok = Bytes, Error = Self::Error> + Send + Unpin;
}

Required Associated Types§

Required Methods§

Source

fn pull( &mut self, range: &Range<u64>, ) -> impl TryStream<Ok = Bytes, Error = Self::Error> + Send + Unpin

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RandPuller for MockPuller

Source§

impl<Client: HttpClient + 'static> RandPuller for HttpPuller<Client>

Source§

type Error = HttpError<Client>