Trait CustomLedger

Source
pub trait CustomLedger: Send {
    // Required methods
    fn read_utxos<'life0, 'async_trait>(
        &'life0 mut self,
        refs: Vec<TxoRef>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Utxo>, LedgerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn search_utxos<'life0, 'async_trait>(
        &'life0 mut self,
        pattern: UtxoPattern,
        start: Option<String>,
        max_items: u32,
    ) -> Pin<Box<dyn Future<Output = Result<UtxoPage, LedgerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn read_params<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, LedgerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn read_utxos<'life0, 'async_trait>( &'life0 mut self, refs: Vec<TxoRef>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Utxo>, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn search_utxos<'life0, 'async_trait>( &'life0 mut self, pattern: UtxoPattern, start: Option<String>, max_items: u32, ) -> Pin<Box<dyn Future<Output = Result<UtxoPage, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn read_params<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

Source§

fn read_utxos<'life0, 'async_trait>( &'life0 mut self, refs: Vec<TxoRef>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Utxo>, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn search_utxos<'life0, 'async_trait>( &'life0 mut self, pattern: UtxoPattern, start: Option<String>, max_items: u32, ) -> Pin<Box<dyn Future<Output = Result<UtxoPage, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn read_params<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§