[][src]Struct solana::blocktree::ErasureMeta

pub struct ErasureMeta {
    pub set_index: u64,
    pub size: usize,
    // some fields omitted
}

Erasure coding information

Fields

set_index: u64

Which erasure set in the slot this is

size: usize

Size of shards in this erasure set

Methods

impl ErasureMeta[src]

pub fn new(set_index: u64) -> ErasureMeta[src]

pub fn status(&self) -> ErasureMetaStatus[src]

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

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

pub fn is_coding_present(&self, index: u64) -> bool[src]

pub fn set_size(&mut self, size: usize)[src]

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

pub fn set_coding_present(&mut self, index: u64, present: bool)[src]

pub fn is_data_present(&self, index: u64) -> bool[src]

pub fn set_data_present(&mut self, index: u64, present: bool)[src]

pub fn set_data_multi<I, Idx>(&mut self, indexes: I, present: bool) where
    I: IntoIterator<Item = Idx>,
    Idx: Borrow<u64>, 
[src]

pub fn set_coding_multi<I, Idx>(&mut self, indexes: I, present: bool) where
    I: IntoIterator<Item = Idx>,
    Idx: Borrow<u64>, 
[src]

pub fn set_index_for(index: u64) -> u64[src]

pub fn data_index_in_set(&self, index: u64) -> Option<u64>[src]

pub fn coding_index_in_set(&self, index: u64) -> Option<u64>[src]

pub fn start_index(&self) -> u64[src]

pub fn end_indexes(&self) -> (u64, u64)[src]

returns a tuple of (data_end, coding_end)

Trait Implementations

impl PartialEq<ErasureMeta> for ErasureMeta[src]

impl Copy for ErasureMeta[src]

impl Eq for ErasureMeta[src]

impl Default for ErasureMeta[src]

impl Clone for ErasureMeta[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ErasureMeta[src]

impl Serialize for ErasureMeta[src]

impl<'de> Deserialize<'de> for ErasureMeta[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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