Trait dkg_gadget::dkg_modules::wt_frost::NetInterface
source · 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;
}