blob: f7eba0bc7174a902e8b18c1cbeba3d7ddf4c9824 (
plain)
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
27
28
|
// #[derive(Debug)]
// enum VRRPv2State {
// Initialize,
// Backup,
// Master,
// }
// struct StateMachine {
// state: VRRPv2State,
// }
// impl StateMachine {
// fn new() -> Self {
// StateMachine {
// state: VRRPv2State::Initialize,
// }
// }
// fn transit_to(&mut self, new_state: VRRPv2State) {
// std::println!("vvrpd: {:?} -> {:?}", self.state, new_state);
// self.state = new_state;
// }
// }
fn main() {
// let mut sm = StateMachine::new();
// sm.transit_to(VRRPv2State::Master);
// sm.transit_to(VRRPv2State::Backup);
}
|