use super::system::SectionDecisions;
use crate::network_knowledge::SectionTreeUpdate;
use bytes::Bytes;
use serde::{Deserialize, Serialize};
#[derive(Clone, PartialEq, custom_debug::Debug, serde::Serialize, serde::Deserialize)]
pub enum AntiEntropyMsg {
Probe(bls::PublicKey),
AntiEntropy {
kind: AntiEntropyKind,
section_tree_update: SectionTreeUpdate,
},
}
#[derive(Clone, PartialEq, Eq, Serialize, Deserialize, custom_debug::Debug)]
pub enum AntiEntropyKind {
Retry {
#[debug(skip)]
bounced_msg: (Bytes, Bytes, Bytes),
},
Redirect {
#[debug(skip)]
bounced_msg: (Bytes, Bytes, Bytes),
},
Update { section_decisions: SectionDecisions },
}