HoprChainApi

Trait HoprChainApi 

Source
pub trait HoprChainApi:
    ChainReadAccountOperations<Error = Self::ChainError>
    + ChainWriteAccountOperations<Error = Self::ChainError>
    + ChainReadChannelOperations<Error = Self::ChainError>
    + ChainWriteChannelOperations<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 to be implemented 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: ChainReadAccountOperations<Error = E> + ChainWriteAccountOperations<Error = E> + ChainReadChannelOperations<Error = E> + ChainWriteChannelOperations<Error = E> + ChainEvents<Error = E> + ChainKeyOperations<Error = E> + ChainValues<Error = E> + ChainWriteTicketOperations<Error = E>, E: Error + Send + Sync + 'static,