Trait SignatureConsumer

Source
pub trait SignatureConsumer: Sync + Send {
    // Required methods
    fn get_signatures<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = StdResult<Vec<(SingleSignature, SignedEntityType)>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_origin_tag(&self) -> String;
}
Expand description

A signature consumer which blocks until messages are available.

Required Methods§

Source

fn get_signatures<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = StdResult<Vec<(SingleSignature, SignedEntityType)>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns signatures when available

Source

fn get_origin_tag(&self) -> String

Returns the origin tag of the consumer (e.g. HTTP or DMQ)

Implementors§