pub struct PrefetchGetObject<Client>{ /* private fields */ }Expand description
Result of a prefetch request. Allows callers to read object data.
Implementations§
Source§impl<Client> PrefetchGetObject<Client>
impl<Client> PrefetchGetObject<Client>
Sourcepub async fn read(
&mut self,
offset: u64,
length: usize,
) -> Result<ChecksummedBytes, PrefetchReadError<Client::ClientError>>
pub async fn read( &mut self, offset: u64, length: usize, ) -> Result<ChecksummedBytes, PrefetchReadError<Client::ClientError>>
Read some bytes from the object. This function will always return exactly size bytes,
except at the end of the object where it will return however many bytes are left (including
possibly 0 bytes).
Trait Implementations§
Source§impl<Client> Debug for PrefetchGetObject<Client>
impl<Client> Debug for PrefetchGetObject<Client>
Auto Trait Implementations§
impl<Client> Freeze for PrefetchGetObject<Client>
impl<Client> !RefUnwindSafe for PrefetchGetObject<Client>
impl<Client> Send for PrefetchGetObject<Client>
impl<Client> Sync for PrefetchGetObject<Client>
impl<Client> !Unpin for PrefetchGetObject<Client>
impl<Client> !UnsafeUnpin for PrefetchGetObject<Client>
impl<Client> !UnwindSafe for PrefetchGetObject<Client>
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