Function holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::tx2::tx2_restart_adapter::tx2_restart_adapter
source · pub fn tx2_restart_adapter(
sub_adapter: Arc<dyn BindAdapt + 'static>
) -> Arc<dyn BindAdapt + 'static>
Expand description
Wrap a tx2 backend adapter in endpoint close / binding restart backoff code. If you call “close” on this backend, it will close, but will immediately start trying to re-bind. The ConRecvAdapt stream will never end, it will transition to messages from the new binding.