pub struct GetManyRequest {
pub hashes: Vec<Hash>,
pub ranges: ChunkRangesSeq,
}
Expand description
A GetMany request is a request to get multiple blobs via a single request.
It is identical to a GetRequest
for a HashSeq, but the HashSeq is provided
by the requester.
Fields§
§hashes: Vec<Hash>
The hashes of the blobs to get
ranges: ChunkRangesSeq
The ranges of data to request
There is no range request for the parent, since we just sent the hashes and therefore have the parent already.
Implementations§
Source§impl GetManyRequest
impl GetManyRequest
pub fn new(hashes: Vec<Hash>, ranges: ChunkRangesSeq) -> Self
pub fn builder() -> GetManyRequestBuilder
Trait Implementations§
Source§impl Clone for GetManyRequest
impl Clone for GetManyRequest
Source§fn clone(&self) -> GetManyRequest
fn clone(&self) -> GetManyRequest
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 GetManyRequest
impl Debug for GetManyRequest
Source§impl<'de> Deserialize<'de> for GetManyRequest
impl<'de> Deserialize<'de> for GetManyRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GetManyRequest> for FiniteRequest
impl From<GetManyRequest> for FiniteRequest
Source§fn from(value: GetManyRequest) -> Self
fn from(value: GetManyRequest) -> Self
Converts to this type from the input type.
Source§impl From<GetManyRequest> for Request
impl From<GetManyRequest> for Request
Source§fn from(value: GetManyRequest) -> Self
fn from(value: GetManyRequest) -> Self
Converts to this type from the input type.
Source§impl<I: Into<Hash>> FromIterator<I> for GetManyRequest
impl<I: Into<Hash>> FromIterator<I> for GetManyRequest
Source§fn from_iter<T: IntoIterator<Item = I>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = I>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for GetManyRequest
impl PartialEq for GetManyRequest
Source§impl Serialize for GetManyRequest
impl Serialize for GetManyRequest
Source§impl SupportedRequest for GetManyRequest
impl SupportedRequest for GetManyRequest
fn into_request(self) -> FiniteRequest
impl Eq for GetManyRequest
impl StructuralPartialEq for GetManyRequest
Auto Trait Implementations§
impl Freeze for GetManyRequest
impl RefUnwindSafe for GetManyRequest
impl Send for GetManyRequest
impl Sync for GetManyRequest
impl Unpin for GetManyRequest
impl UnwindSafe for GetManyRequest
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> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.