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 copy 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 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