HoprNodeDbApi

Trait HoprNodeDbApi 

Source
pub trait HoprNodeDbApi:
    HoprDbTicketOperations<Error = Self::NodeDbError>
    + HoprDbPeersOperations<Error = Self::NodeDbError>
    + HoprDbProtocolOperations<Error = Self::NodeDbError> {
    type NodeDbError: Error + Send + Sync + 'static;
}
Expand description

Complete set of HOPR node database 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 NodeDbError: 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> HoprNodeDbApi for T
where T: HoprDbTicketOperations<Error = E> + HoprDbPeersOperations<Error = E> + HoprDbProtocolOperations<Error = E>, E: Error + Send + Sync + 'static,