[−][src]Struct solana::blocktree::ErasureMeta
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]
I: IntoIterator<Item = Idx>,
Idx: Borrow<u64>,
pub fn set_coding_multi<I, Idx>(&mut self, indexes: I, present: bool) where
I: IntoIterator<Item = Idx>,
Idx: Borrow<u64>,
[src]
I: IntoIterator<Item = Idx>,
Idx: Borrow<u64>,
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]
fn eq(&self, other: &ErasureMeta) -> bool
[src]
fn ne(&self, other: &ErasureMeta) -> bool
[src]
impl Copy for ErasureMeta
[src]
impl Eq for ErasureMeta
[src]
impl Default for ErasureMeta
[src]
fn default() -> ErasureMeta
[src]
impl Clone for ErasureMeta
[src]
fn clone(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ErasureMeta
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ErasureMeta
impl Unpin for ErasureMeta
impl Sync for ErasureMeta
impl UnwindSafe for ErasureMeta
impl RefUnwindSafe for ErasureMeta
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Typeable for T where
T: Any,
T: Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,