Skip to main content

InjectedStorageRO

Trait InjectedStorageRO 

Source
pub trait InjectedStorageRO {
    // Required methods
    fn injected_transaction(
        &self,
        hash: HashOf<InjectedTransaction>,
    ) -> Option<SignedInjectedTransaction>;
    fn promise(&self, hash: HashOf<InjectedTransaction>) -> Option<Promise>;
    fn receipt(
        &self,
        hash: HashOf<InjectedTransaction>,
    ) -> Option<SignedTxReceipt>;
}

Required Methods§

Source

fn injected_transaction( &self, hash: HashOf<InjectedTransaction>, ) -> Option<SignedInjectedTransaction>

Returns the transactions by its hash.

Source

fn promise(&self, hash: HashOf<InjectedTransaction>) -> Option<Promise>

Returns the promise by its transaction hash.

Source

fn receipt(&self, hash: HashOf<InjectedTransaction>) -> Option<SignedTxReceipt>

Returns the receipt by its transaction hash.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + InjectedStorageRO + ?Sized> InjectedStorageRO for &'a T

Implementors§