#[derive(Clone, Copy, Debug)]
pub enum Strategy {
Restart,
Stop,
Escalate,
}
pub struct Supervisor {
strategy: Strategy,
}
impl Supervisor {
pub fn new(strategy: Strategy) -> Self {
Self { strategy }
}
pub fn strategy(&self) -> Strategy { self.strategy }
}