HoprStaticChainApi

Trait HoprStaticChainApi 

Source
pub trait HoprStaticChainApi: ChainReadSafeOperations<Error = Self::ChainError> + ChainValues<Error = Self::ChainError> {
    type ChainError: Error + Send + Sync + 'static;
}
Expand description

Reduced set of read-only HOPR on-chain operation APIs.

Useful when only basic on-chain operations are required for querying.

This trait is automatically implemented for types that implement all the individual chain API traits with the same error.

Required Associated Types§

Source

type ChainError: Error + Send + Sync + 'static

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.

Implementors§

Source§

impl<T, E> HoprStaticChainApi for T
where T: ChainReadSafeOperations<Error = E> + ChainValues<Error = E>, E: Error + Send + Sync + 'static,