1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
//! Holochain autonomic type helpers.
/// The various processes which run "autonomically", aka subconsciously.
/// These are currently not used.
pub enum AutonomicProcess {
/// Validation / Correction may propagate much slower.
SlowHeal,
/// See how many validators we can find on the network for all of our entries
/// Push out new hold requests if the health is too low.
HealthCheck,
}
/// A cue that the autonomic system should perform one of its functions now,
/// rather than at the next scheduled time
pub enum AutonomicCue {
// /// Cue sent when it is known that entries are ready for initial publishing,
// /// i.e. after committing new entries to your source chain
// Publish(Address),
}
impl From<AutonomicCue> for AutonomicProcess {
fn from(cue: AutonomicCue) -> AutonomicProcess {
match cue {}
}
}