/// The function attempts to convert the given Protobuf chunk request into a
/// GossipChunkRequest.
The function attempts to convert the given Protobuf chunk request into a
GossipChunkRequest.
The function attempts to convert the given Protobuf chunk request into a GossipChunkRequest .
fn try_from(gossip_chunk_request: pb::GossipChunkRequest) -> Result<Self, Self::Error> {
        Ok(Self {
            artifact_id: deserialize(&gossip_chunk_request.artifact_id)?,
            chunk_id: ChunkId::from(gossip_chunk_request.chunk_id),
            integrity_hash: deserialize(&gossip_chunk_request.integrity_hash)?,
        })
    }
fn try_from ( gossip_chunk_request : pb :: GossipChunkRequest ) -> Result < Self , Self :: Error > { Ok ( Self { artifact_id : deserialize ( & gossip_chunk_request . artifact_id ) ? , chunk_id : ChunkId :: from ( gossip_chunk_request . chunk_id ) , integrity_hash : deserialize ( & gossip_chunk_request . integrity_hash ) ? , } ) }
The function attempts to convert the given Protobuf chunk request into a
GossipChunkRequest.
The function attempts to convert the given Protobuf chunk request into a GossipChunkRequest .
gossip_chunk_request
pb::GossipChunkRequest