#[non_exhaustive]pub enum AnyIndexer {
Electrum(Box<Client>),
Esplora(Box<BlockingClient>),
}
Expand description
Type that contains any of the client types implementing the Indexer trait
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl From<Box<BlockingClient>> for AnyIndexer
impl From<Box<BlockingClient>> for AnyIndexer
Source§fn from(v: Box<BlockingClient>) -> AnyIndexer
fn from(v: Box<BlockingClient>) -> AnyIndexer
Converts to this type from the input type.
Source§impl Indexer for AnyIndexer
impl Indexer for AnyIndexer
type Error = AnyIndexerError
fn create<K, D, L2>(
&self,
descr: &WalletDescr<K, D, <L2 as Layer2>::Descr>,
) -> MayError<WalletCache<<L2 as Layer2>::Cache>, Vec<<AnyIndexer as Indexer>::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<<AnyIndexer as Indexer>::Error>>where
D: Descriptor<K>,
L2: Layer2,
Auto Trait Implementations§
impl Freeze for AnyIndexer
impl !RefUnwindSafe for AnyIndexer
impl Send for AnyIndexer
impl Sync for AnyIndexer
impl Unpin for AnyIndexer
impl !UnwindSafe for AnyIndexer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more