Struct near_primitives::sharding::EncodedShardChunkBody[][src]

pub struct EncodedShardChunkBody {
    pub parts: Vec<Option<Box<[u8]>>>,
}

Fields

parts: Vec<Option<Box<[u8]>>>

Implementations

impl EncodedShardChunkBody[src]

pub fn num_fetched_parts(&self) -> usize[src]

pub fn reconstruct(&mut self, rs: &mut ReedSolomonWrapper) -> Result<(), Error>[src]

Returns true if reconstruction was successful

pub fn get_merkle_hash_and_paths(&self) -> (MerkleHash, Vec<MerklePath>)[src]

Trait Implementations

impl BorshDeserialize for EncodedShardChunkBody where
    Vec<Option<Box<[u8]>>>: BorshDeserialize
[src]

impl BorshSerialize for EncodedShardChunkBody where
    Vec<Option<Box<[u8]>>>: BorshSerialize
[src]

impl Clone for EncodedShardChunkBody[src]

impl Debug for EncodedShardChunkBody[src]

impl Default for EncodedShardChunkBody[src]

impl Eq for EncodedShardChunkBody[src]

impl PartialEq<EncodedShardChunkBody> for EncodedShardChunkBody[src]

impl Serialize for EncodedShardChunkBody[src]

impl StructuralEq for EncodedShardChunkBody[src]

impl StructuralPartialEq for EncodedShardChunkBody[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,