Trait Indexer

Source
pub trait Indexer {
    type Error;

    // Required methods
    fn create<K, D, L2>(
        &self,
        descr: &WalletDescr<K, D, <L2 as Layer2>::Descr>,
    ) -> MayError<WalletCache<<L2 as Layer2>::Cache>, Vec<Self::Error>>
       where D: Descriptor<K>,
             L2: Layer2;
    fn update<K, D, L2>(
        &self,
        descr: &WalletDescr<K, D, <L2 as Layer2>::Descr>,
        cache: &mut WalletCache<<L2 as Layer2>::Cache>,
    ) -> MayError<usize, Vec<Self::Error>>
       where D: Descriptor<K>,
             L2: Layer2;
}

Required Associated Types§

Required Methods§

Source

fn create<K, D, L2>( &self, descr: &WalletDescr<K, D, <L2 as Layer2>::Descr>, ) -> MayError<WalletCache<<L2 as Layer2>::Cache>, Vec<Self::Error>>
where D: Descriptor<K>, L2: Layer2,

Source

fn update<K, D, L2>( &self, descr: &WalletDescr<K, D, <L2 as Layer2>::Descr>, cache: &mut WalletCache<<L2 as Layer2>::Cache>, ) -> MayError<usize, Vec<Self::Error>>
where D: Descriptor<K>, L2: Layer2,

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.

Implementations on Foreign Types§

Source§

impl Indexer for Client

Source§

type Error = Error

Source§

fn create<K, D, L2>( &self, descriptor: &WalletDescr<K, D, <L2 as Layer2>::Descr>, ) -> MayError<WalletCache<<L2 as Layer2>::Cache>, Vec<<Client as Indexer>::Error>>
where D: Descriptor<K>, L2: Layer2,

Source§

fn update<K, D, L2>( &self, _descr: &WalletDescr<K, D, <L2 as Layer2>::Descr>, _cache: &mut WalletCache<<L2 as Layer2>::Cache>, ) -> MayError<usize, Vec<<Client as Indexer>::Error>>
where D: Descriptor<K>, L2: Layer2,

Source§

impl Indexer for BlockingClient

Source§

type Error = Error

Source§

fn create<K, D, L2>( &self, descriptor: &WalletDescr<K, D, <L2 as Layer2>::Descr>, ) -> MayError<WalletCache<<L2 as Layer2>::Cache>, Vec<<BlockingClient as Indexer>::Error>>
where D: Descriptor<K>, L2: Layer2,

Source§

fn update<K, D, L2>( &self, _descr: &WalletDescr<K, D, <L2 as Layer2>::Descr>, _cache: &mut WalletCache<<L2 as Layer2>::Cache>, ) -> MayError<usize, Vec<<BlockingClient as Indexer>::Error>>
where D: Descriptor<K>, L2: Layer2,

Implementors§

Source§

impl Indexer for AnyIndexer

Source§

type Error = AnyIndexerError