pub trait RecipientSource<K: SignatureKey + 'static>:
Send
+ Sync
+ 'static {
// Required method
fn get_recipients_for<'life0, 'life1, 'async_trait, R>(
&'life0 self,
request: &'life1 R,
) -> Pin<Box<dyn Future<Output = Vec<K>> + Send + 'async_trait>>
where R: 'async_trait + Request,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
A trait that allows the [RequestResponseProtocol
] to get the recipients that a specific message should
expect responses from. In HotShot
this would go on top of the [Membership
] trait and determine
which nodes are able (quorum/DA) to respond to which requests
Required Methods§
sourcefn get_recipients_for<'life0, 'life1, 'async_trait, R>(
&'life0 self,
request: &'life1 R,
) -> Pin<Box<dyn Future<Output = Vec<K>> + Send + 'async_trait>>where
R: 'async_trait + Request,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_recipients_for<'life0, 'life1, 'async_trait, R>(
&'life0 self,
request: &'life1 R,
) -> Pin<Box<dyn Future<Output = Vec<K>> + Send + 'async_trait>>where
R: 'async_trait + Request,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all the recipients that the specific request should expect responses from
Object Safety§
This trait is not object safe.