pub trait TxPoolPersistentStorage:
Clone
+ PredicateStorageRequirements
+ Send
+ Sync
+ 'static {
// Required methods
fn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>;
fn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>;
fn blob_exist(&self, blob_id: &BlobId) -> StorageResult<bool>;
fn message(&self, message_id: &Nonce) -> StorageResult<Option<Message>>;
}
Required Methods§
Sourcefn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>
fn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>
Get the UTXO by its ID.
Sourcefn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>
fn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>
Check if the contract with the given ID exists.
Sourcefn blob_exist(&self, blob_id: &BlobId) -> StorageResult<bool>
fn blob_exist(&self, blob_id: &BlobId) -> StorageResult<bool>
Check if the blob with the given ID exists.
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.