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§
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,
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.