Trait TxPoolPersistentStorage

Source
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§

Source

fn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>

Get the UTXO by its ID.

Source

fn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>

Check if the contract with the given ID exists.

Source

fn blob_exist(&self, blob_id: &BlobId) -> StorageResult<bool>

Check if the blob with the given ID exists.

Source

fn message(&self, message_id: &Nonce) -> StorageResult<Option<Message>>

Get the message by its ID.

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.

Implementors§