pub struct GetRequestBuilder { /* private fields */ }Implementations§
Source§impl GetRequestBuilder
impl GetRequestBuilder
Sourcepub fn offset(self, offset: u64, ranges: impl Into<ChunkRanges>) -> Self
pub fn offset(self, offset: u64, ranges: impl Into<ChunkRanges>) -> Self
Add a range to the request.
Sourcepub fn child(self, child: u64, ranges: impl Into<ChunkRanges>) -> Self
pub fn child(self, child: u64, ranges: impl Into<ChunkRanges>) -> Self
Add a range to the request.
Sourcepub fn root(self, ranges: impl Into<ChunkRanges>) -> Self
pub fn root(self, ranges: impl Into<ChunkRanges>) -> Self
Specify ranges for the root blob (the HashSeq)
Sourcepub fn next(self, ranges: impl Into<ChunkRanges>) -> Self
pub fn next(self, ranges: impl Into<ChunkRanges>) -> Self
Specify ranges for the next offset.
Sourcepub fn build(self, hash: impl Into<Hash>) -> GetRequest
pub fn build(self, hash: impl Into<Hash>) -> GetRequest
Build a get request for the given hash, with the ranges specified in the builder.
Sourcepub fn build_open(self, hash: impl Into<Hash>) -> GetRequest
pub fn build_open(self, hash: impl Into<Hash>) -> GetRequest
Build a get request for the given hash, with the ranges specified in the builder and the last non-empty range repeating indefinitely.
Trait Implementations§
Source§impl Clone for GetRequestBuilder
impl Clone for GetRequestBuilder
Source§fn clone(&self) -> GetRequestBuilder
fn clone(&self) -> GetRequestBuilder
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 moreSource§impl Debug for GetRequestBuilder
impl Debug for GetRequestBuilder
Source§impl Default for GetRequestBuilder
impl Default for GetRequestBuilder
Source§fn default() -> GetRequestBuilder
fn default() -> GetRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetRequestBuilder
impl RefUnwindSafe for GetRequestBuilder
impl Send for GetRequestBuilder
impl Sync for GetRequestBuilder
impl Unpin for GetRequestBuilder
impl UnsafeUnpin for GetRequestBuilder
impl UnwindSafe for GetRequestBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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