pub trait Tables {
Show 23 methods
// Required methods
fn block_header_blobs(&self) -> &impl DatabaseRo<BlockHeaderBlobs>;
fn block_txs_hashes(&self) -> &impl DatabaseRo<BlockTxsHashes>;
fn block_heights(&self) -> &impl DatabaseRo<BlockHeights>;
fn block_infos(&self) -> &impl DatabaseRo<BlockInfos>;
fn key_images(&self) -> &impl DatabaseRo<KeyImages>;
fn num_outputs(&self) -> &impl DatabaseRo<NumOutputs>;
fn outputs(&self) -> &impl DatabaseRo<Outputs>;
fn pruned_tx_blobs(&self) -> &impl DatabaseRo<PrunedTxBlobs>;
fn prunable_tx_blobs(&self) -> &impl DatabaseRo<PrunableTxBlobs>;
fn prunable_hashes(&self) -> &impl DatabaseRo<PrunableHashes>;
fn rct_outputs(&self) -> &impl DatabaseRo<RctOutputs>;
fn tx_blobs(&self) -> &impl DatabaseRo<TxBlobs>;
fn tx_ids(&self) -> &impl DatabaseRo<TxIds>;
fn tx_heights(&self) -> &impl DatabaseRo<TxHeights>;
fn tx_outputs(&self) -> &impl DatabaseRo<TxOutputs>;
fn tx_unlock_time(&self) -> &impl DatabaseRo<TxUnlockTime>;
fn alt_chain_infos(&self) -> &impl DatabaseRo<AltChainInfos>;
fn alt_block_heights(&self) -> &impl DatabaseRo<AltBlockHeights>;
fn alt_blocks_info(&self) -> &impl DatabaseRo<AltBlocksInfo>;
fn alt_block_blobs(&self) -> &impl DatabaseRo<AltBlockBlobs>;
fn alt_transaction_blobs(&self) -> &impl DatabaseRo<AltTransactionBlobs>;
fn alt_transaction_infos(&self) -> &impl DatabaseRo<AltTransactionInfos>;
fn all_tables_empty(&self) -> Result<bool, RuntimeError>;
}
Expand description
Object containing all opened Table
s in read-only mode.
This is an encapsulated object that contains all
available Table
’s in read-only mode.
It is a Sealed
trait and is only implemented on a
(tuple, containing, all, table, types, ...)
.
This is used to return a single object from functions like
OpenTables::open_tables
rather than the tuple containing the tables itself.
To replace tuple.0
style indexing, field_accessor_functions()
are provided on this trait, which essentially map the object to
fields containing the particular database table, for example:
let tables = open_tables();
// The accessor function `block_infos()` returns the field
// containing an open database table for `BlockInfos`.
let _ = tables.block_infos();
See also:
Required Methods§
Sourcefn block_header_blobs(&self) -> &impl DatabaseRo<BlockHeaderBlobs>
fn block_header_blobs(&self) -> &impl DatabaseRo<BlockHeaderBlobs>
Access an opened
BlockHeaderBlobs
database.
Sourcefn block_txs_hashes(&self) -> &impl DatabaseRo<BlockTxsHashes>
fn block_txs_hashes(&self) -> &impl DatabaseRo<BlockTxsHashes>
Access an opened
BlockTxsHashes
database.
Sourcefn block_heights(&self) -> &impl DatabaseRo<BlockHeights>
fn block_heights(&self) -> &impl DatabaseRo<BlockHeights>
Access an opened
BlockHeights
database.
Sourcefn block_infos(&self) -> &impl DatabaseRo<BlockInfos>
fn block_infos(&self) -> &impl DatabaseRo<BlockInfos>
Access an opened
BlockInfos
database.
Sourcefn key_images(&self) -> &impl DatabaseRo<KeyImages>
fn key_images(&self) -> &impl DatabaseRo<KeyImages>
Access an opened
KeyImages
database.
Sourcefn num_outputs(&self) -> &impl DatabaseRo<NumOutputs>
fn num_outputs(&self) -> &impl DatabaseRo<NumOutputs>
Access an opened
NumOutputs
database.
Sourcefn outputs(&self) -> &impl DatabaseRo<Outputs>
fn outputs(&self) -> &impl DatabaseRo<Outputs>
Access an opened
Outputs
database.
Sourcefn pruned_tx_blobs(&self) -> &impl DatabaseRo<PrunedTxBlobs>
fn pruned_tx_blobs(&self) -> &impl DatabaseRo<PrunedTxBlobs>
Access an opened
PrunedTxBlobs
database.
Sourcefn prunable_tx_blobs(&self) -> &impl DatabaseRo<PrunableTxBlobs>
fn prunable_tx_blobs(&self) -> &impl DatabaseRo<PrunableTxBlobs>
Access an opened
PrunableTxBlobs
database.
Sourcefn prunable_hashes(&self) -> &impl DatabaseRo<PrunableHashes>
fn prunable_hashes(&self) -> &impl DatabaseRo<PrunableHashes>
Access an opened
PrunableHashes
database.
Sourcefn rct_outputs(&self) -> &impl DatabaseRo<RctOutputs>
fn rct_outputs(&self) -> &impl DatabaseRo<RctOutputs>
Access an opened
RctOutputs
database.
Sourcefn tx_blobs(&self) -> &impl DatabaseRo<TxBlobs>
fn tx_blobs(&self) -> &impl DatabaseRo<TxBlobs>
Access an opened
TxBlobs
database.
Sourcefn tx_ids(&self) -> &impl DatabaseRo<TxIds>
fn tx_ids(&self) -> &impl DatabaseRo<TxIds>
Access an opened
TxIds
database.
Sourcefn tx_heights(&self) -> &impl DatabaseRo<TxHeights>
fn tx_heights(&self) -> &impl DatabaseRo<TxHeights>
Access an opened
TxHeights
database.
Sourcefn tx_outputs(&self) -> &impl DatabaseRo<TxOutputs>
fn tx_outputs(&self) -> &impl DatabaseRo<TxOutputs>
Access an opened
TxOutputs
database.
Sourcefn tx_unlock_time(&self) -> &impl DatabaseRo<TxUnlockTime>
fn tx_unlock_time(&self) -> &impl DatabaseRo<TxUnlockTime>
Access an opened
TxUnlockTime
database.
Sourcefn alt_chain_infos(&self) -> &impl DatabaseRo<AltChainInfos>
fn alt_chain_infos(&self) -> &impl DatabaseRo<AltChainInfos>
Access an opened
AltChainInfos
database.
Sourcefn alt_block_heights(&self) -> &impl DatabaseRo<AltBlockHeights>
fn alt_block_heights(&self) -> &impl DatabaseRo<AltBlockHeights>
Access an opened
AltBlockHeights
database.
Sourcefn alt_blocks_info(&self) -> &impl DatabaseRo<AltBlocksInfo>
fn alt_blocks_info(&self) -> &impl DatabaseRo<AltBlocksInfo>
Access an opened
AltBlocksInfo
database.
Sourcefn alt_block_blobs(&self) -> &impl DatabaseRo<AltBlockBlobs>
fn alt_block_blobs(&self) -> &impl DatabaseRo<AltBlockBlobs>
Access an opened
AltBlockBlobs
database.
Sourcefn alt_transaction_blobs(&self) -> &impl DatabaseRo<AltTransactionBlobs>
fn alt_transaction_blobs(&self) -> &impl DatabaseRo<AltTransactionBlobs>
Access an opened
AltTransactionBlobs
database.
Sourcefn alt_transaction_infos(&self) -> &impl DatabaseRo<AltTransactionInfos>
fn alt_transaction_infos(&self) -> &impl DatabaseRo<AltTransactionInfos>
Access an opened
AltTransactionInfos
database.
Sourcefn all_tables_empty(&self) -> Result<bool, RuntimeError>
fn all_tables_empty(&self) -> Result<bool, RuntimeError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.