HoprChainApi

Trait HoprChainApi 

Source
pub trait HoprChainApi:
    ChainReadAccountOperations<Error = Self::ChainError>
    + ChainWriteAccountOperations<Error = Self::ChainError>
    + ChainReadChannelOperations<Error = Self::ChainError>
    + ChainWriteChannelOperations<Error = Self::ChainError>
    + ChainReadSafeOperations<Error = Self::ChainError>
    + ChainEvents<Error = Self::ChainError>
    + ChainKeyOperations<Error = Self::ChainError>
    + ChainValues<Error = Self::ChainError>
    + ChainWriteTicketOperations<Error = Self::ChainError> {
    type ChainError: Error + Send + Sync + 'static;
}
Expand description

Complete set of HOPR on-chain operation APIs.

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> HoprChainApi for T
where T: ChainReadSafeOperations<Error = E> + ChainWriteAccountOperations<Error = E> + ChainEvents<Error = E> + ChainKeyOperations<Error = E> + ChainReadChannelOperations<Error = E> + ChainValues<Error = E> + ChainReadAccountOperations<Error = E> + ChainWriteTicketOperations<Error = E> + ChainWriteChannelOperations<Error = E>, E: Error + Send + Sync + 'static,