Struct everscale_types::models::block::ShardHashes
source · pub struct ShardHashes(_);Expand description
A tree of the most recent descriptions for all currently existing shards for all workchains except the masterchain.
Implementations§
source§impl ShardHashes
impl ShardHashes
sourcepub fn iter(&self) -> ShardHashesIter<'_> ⓘ
pub fn iter(&self) -> ShardHashesIter<'_> ⓘ
Gets an iterator over the entries of the shard description trees, sorted by
shard ident. The iterator element is Result<(ShardIdent, ShardDescription)>.
If the dict or tree is invalid, finishes after the first invalid element. returning an error.
sourcepub fn raw_iter(&self) -> ShardHashesRawIter<'_> ⓘ
pub fn raw_iter(&self) -> ShardHashesRawIter<'_> ⓘ
Gets an iterator over the raw entries of the shard description trees, sorted by
shard ident. The iterator element is Result<(ShardIdent, CellSlice)>.
If the dict or tree is invalid, finishes after the first invalid element, returning an error.
sourcepub fn latest_blocks(&self) -> LatestBlocksIter<'_> ⓘ
pub fn latest_blocks(&self) -> LatestBlocksIter<'_> ⓘ
Gets an iterator over the latest blocks in all shards, sorted by
shard ident. The iterator element is Result<BlockId>.
If the dict or tree is invalid, finishes after the first invalid element, returning an error.
sourcepub fn get_workchain_shards(
&self,
workchain: i32
) -> Result<Option<WorkchainShardHashes>, Error>
pub fn get_workchain_shards( &self, workchain: i32 ) -> Result<Option<WorkchainShardHashes>, Error>
Returns a shards description tree root for the specified workchain.
Trait Implementations§
source§impl Clone for ShardHashes
impl Clone for ShardHashes
source§fn clone(&self) -> ShardHashes
fn clone(&self) -> ShardHashes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ShardHashes
impl Debug for ShardHashes
source§impl<'tlb> Load<'tlb> for ShardHashes
impl<'tlb> Load<'tlb> for ShardHashes
source§impl PartialEq<ShardHashes> for ShardHashes
impl PartialEq<ShardHashes> for ShardHashes
source§fn eq(&self, other: &ShardHashes) -> bool
fn eq(&self, other: &ShardHashes) -> bool
self and other values to be equal, and is used
by ==.