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§
Sourcefn 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_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
Sourcefn get_origin_tag(&self) -> String
fn get_origin_tag(&self) -> String
Returns the origin tag of the consumer (e.g. HTTP or DMQ)