pub struct ShardHashes(/* private fields */);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 from_shards<'a, I>(iter: I) -> Result<Self, Error>
pub fn from_shards<'a, I>(iter: I) -> Result<Self, Error>
Tries to construct a ShardHashes from an iterator over the shards.
The iterator must contain a list of all shards for each workchain.
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) -> ShardsTreeRawIter<'_> ⓘ
pub fn raw_iter(&self) -> ShardsTreeRawIter<'_> ⓘ
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 Default for ShardHashes
impl Default for ShardHashes
Source§fn default() -> ShardHashes
fn default() -> ShardHashes
Source§impl<'tlb> Load<'tlb> for ShardHashes
impl<'tlb> Load<'tlb> for ShardHashes
Source§impl PartialEq for ShardHashes
impl PartialEq for ShardHashes
Source§impl Serialize for ShardHashes
impl Serialize for ShardHashes
Source§impl Store for ShardHashes
impl Store for ShardHashes
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &mut dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &mut dyn CellContext, ) -> Result<(), Error>
impl Eq for ShardHashes
impl StructuralPartialEq for ShardHashes
Auto Trait Implementations§
impl Freeze for ShardHashes
impl !RefUnwindSafe for ShardHashes
impl Send for ShardHashes
impl Sync for ShardHashes
impl Unpin for ShardHashes
impl !UnwindSafe for ShardHashes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
self to key and returns true if they are equal.