Trait ListableSubstateDatabaseExtensions

Source
pub trait ListableSubstateDatabaseExtensions: ListableSubstateDatabase {
    // Provided method
    fn read_partition_keys(
        &self,
    ) -> Box<dyn Iterator<Item = (NodeId, PartitionNumber)> + '_> { ... }
}
Expand description

These are a separate trait so that ListableSubstateDatabase stays object-safe, and can be used as dyn ListableSubstateDatabase.

Generic parameters aren’t permitted on object-safe traits.

Provided Methods§

Source

fn read_partition_keys( &self, ) -> Box<dyn Iterator<Item = (NodeId, PartitionNumber)> + '_>

Implementors§