pub struct HttpProxyReader { /* private fields */ }Expand description
HttpProxyReader is a BlobReader to implement the HttpProxy backend driver.
Trait Implementations§
Source§impl BlobReader for HttpProxyReader
impl BlobReader for HttpProxyReader
Source§fn blob_size(&self) -> BackendResult<u64>
fn blob_size(&self) -> BackendResult<u64>
Get size of the blob file.
Source§fn try_read(&self, buf: &mut [u8], offset: u64) -> BackendResult<usize>
fn try_read(&self, buf: &mut [u8], offset: u64) -> BackendResult<usize>
Try to read a range of data from the blob file into the provided buffer. Read more
Source§fn metrics(&self) -> &BackendMetrics
fn metrics(&self) -> &BackendMetrics
Get metrics object.
Source§fn read(&self, buf: &mut [u8], offset: u64) -> BackendResult<usize>
fn read(&self, buf: &mut [u8], offset: u64) -> BackendResult<usize>
Read a range of data from the blob file into the provided buffer. Read more
Source§fn read_all(&self, buf: &mut [u8], offset: u64) -> BackendResult<usize>
fn read_all(&self, buf: &mut [u8], offset: u64) -> BackendResult<usize>
Read as much as possible data into buffer.
Source§fn readv(
&self,
bufs: &[FileVolatileSlice<'_>],
offset: u64,
max_size: usize,
) -> BackendResult<usize>
fn readv( &self, bufs: &[FileVolatileSlice<'_>], offset: u64, max_size: usize, ) -> BackendResult<usize>
Read a range of data from the blob file into the provided buffers. Read more
Source§fn retry_limit(&self) -> u8
fn retry_limit(&self) -> u8
Get maximum number of times to retry when encountering IO errors.
Auto Trait Implementations§
impl Freeze for HttpProxyReader
impl !RefUnwindSafe for HttpProxyReader
impl Send for HttpProxyReader
impl Sync for HttpProxyReader
impl Unpin for HttpProxyReader
impl UnsafeUnpin for HttpProxyReader
impl !UnwindSafe for HttpProxyReader
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