pub trait NetInterface: Send {
    type Error: Debug;

    // Required methods
    fn next_message<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<FrostMessage>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_message<'life0, 'async_trait>(
        &'life0 mut self,
        msg: FrostMessage
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn next_message<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<FrostMessage>, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn send_message<'life0, 'async_trait>( &'life0 mut self, msg: FrostMessage ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<B, BE, C, GE, BI: BlockchainInterface> NetInterface for FrostNetworkWrapper<B, BE, C, GE, BI>where B: Block, BE: Backend<B>, C: Client<B, BE>, GE: GossipEngineIface,

§

type Error = DKGError