pub trait MergeCloseSealAsync<Seal>: SealProtocolAsync<Seal>
where Seal: Sync + Send,
{ // Required methods fn merge_close_seal_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, seal: &'life1 Seal, over: &'life2 Self::Message, witness_proto: Self::Witness ) -> Pin<Box<dyn Future<Output = Result<Self::Witness, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn merge_close_all_seals_async<'seal, 'life0, 'life1, 'async_trait>( &'life0 mut self, seals: impl 'async_trait + IntoIterator<Item = &'seal Seal>, over: &'life1 Self::Message ) -> Pin<Box<dyn Future<Output = Result<Self::Witness, Self::Error>> + Send + 'async_trait>> where Seal: 'seal, Self: 'async_trait, 'seal: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; }
Expand description

Adds support to SealProtocolAsync for merging seal close operation into an existing witness data (closing some other seals).

Required Methods§

source

fn merge_close_seal_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, seal: &'life1 Seal, over: &'life2 Self::Message, witness_proto: Self::Witness ) -> Pin<Box<dyn Future<Output = Result<Self::Witness, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Closes seal over a message, adding witness to some existing witness container.

NB: Closing of the seal MUST not change the internal state of the seal itself; all the data produced by the process must be placed into the returned Witness type.

The witness is not published by this method to the seal medium.

source

fn merge_close_all_seals_async<'seal, 'life0, 'life1, 'async_trait>( &'life0 mut self, seals: impl 'async_trait + IntoIterator<Item = &'seal Seal>, over: &'life1 Self::Message ) -> Pin<Box<dyn Future<Output = Result<Self::Witness, Self::Error>> + Send + 'async_trait>>
where Seal: 'seal, Self: 'async_trait, 'seal: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Closes number of related seals over the same message, adding witness to some existing witness container.

NB: Closing of the seal MUST not change the internal state of the seal itself; all the data produced by the process must be placed into the returned Witness type.

The witness is not published by this method to the seal medium.

Object Safety§

This trait is not object safe.

Implementors§