pub struct RetrievalResponse {
pub bytes: Bytes,
pub start: u64,
pub total: u64,
pub partial: bool,
}Expand description
A bounded pack segment, fully checked before the adapter returns its bytes.
Fields§
§bytes: BytesExact raw bytes, bounded by MAX_RESPONSE_BYTES.
start: u64First byte of the selected segment.
total: u64Exact bound raw pack length.
partial: boolWhether the scanner explicitly requested a range.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RetrievalResponse
impl RefUnwindSafe for RetrievalResponse
impl Send for RetrievalResponse
impl Sync for RetrievalResponse
impl Unpin for RetrievalResponse
impl UnsafeUnpin for RetrievalResponse
impl UnwindSafe for RetrievalResponse
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