pub struct ReqwestReader { /* private fields */ }Available on crate feature
reqwest only.Expand description
An AsyncFileReader that reads from a URL using reqwest.
Implementations§
Trait Implementations§
Source§impl AsyncFileReader for ReqwestReader
impl AsyncFileReader for ReqwestReader
Source§fn get_bytes<'life0, 'async_trait>(
&'life0 self,
range: Range<u64>,
) -> Pin<Box<dyn Future<Output = AsyncTiffResult<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_bytes<'life0, 'async_trait>(
&'life0 self,
range: Range<u64>,
) -> Pin<Box<dyn Future<Output = AsyncTiffResult<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve the bytes in
range as part of a request for image data, not header metadata. Read moreSource§fn get_byte_ranges<'life0, 'async_trait>(
&'life0 self,
ranges: Vec<Range<u64>>,
) -> Pin<Box<dyn Future<Output = AsyncTiffResult<Vec<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_byte_ranges<'life0, 'async_trait>(
&'life0 self,
ranges: Vec<Range<u64>>,
) -> Pin<Box<dyn Future<Output = AsyncTiffResult<Vec<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve multiple byte ranges as part of a request for image data, not header metadata. The
default implementation will call
get_bytes sequentiallySource§impl Clone for ReqwestReader
impl Clone for ReqwestReader
Source§fn clone(&self) -> ReqwestReader
fn clone(&self) -> ReqwestReader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReqwestReader
impl !RefUnwindSafe for ReqwestReader
impl Send for ReqwestReader
impl Sync for ReqwestReader
impl Unpin for ReqwestReader
impl !UnwindSafe for ReqwestReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more