pub struct CacheRange {
pub offsets: Vec<u32>,
pub data: Vec<u8>,
pub range: ChunkRange,
}Expand description
Return dto for cache gets offsets has 1 more than then number of chunks in the specified range suppose the range is for chunks [2, 5) then offsets may look like: [0, 2000, 4000, 6000] where chunk 2 is made of bytes [0, 2000) chunk 3 [2000, 4000) and chunk 4 is [4000, 6000). It is guaranteed that the first number in offsets is 0 and the last number is data.len()
Fields§
§offsets: Vec<u32>§data: Vec<u8>§range: ChunkRangeTrait Implementations§
Auto Trait Implementations§
impl Freeze for CacheRange
impl RefUnwindSafe for CacheRange
impl Send for CacheRange
impl Sync for CacheRange
impl Unpin for CacheRange
impl UnsafeUnpin for CacheRange
impl UnwindSafe for CacheRange
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
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more