aboutsummaryrefslogtreecommitdiff
path: root/src/node_state.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-22 18:41:13 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-22 18:41:13 +0200
commite1d0eadb9dc5e2e3bea8bc48f7b33ad9ef632554 (patch)
treed1e891b87684c7907ff1245ebd5ad403804f6fd9 /src/node_state.rs
parentdeeecd93e1fc5545e6e0280d1799436638e84a38 (diff)
downloaddiplonat-e1d0eadb9dc5e2e3bea8bc48f7b33ad9ef632554.tar.gz
diplonat-e1d0eadb9dc5e2e3bea8bc48f7b33ad9ef632554.zip
WIP software
Diffstat (limited to 'src/node_state.rs')
-rw-r--r--src/node_state.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/node_state.rs b/src/node_state.rs
deleted file mode 100644
index ecf7484..0000000
--- a/src/node_state.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-pub struct NodeState {
- pub consul_node_name: Option<String>,
- pub consul_url: Option<String>,
-
- pub refresh_time: Option<u32>,
- pub expiration_time: Option<u32>,
-
- pub public_ip: Option<String>,
- pub private_ip: Option<String>,
- pub public_ports: Vec<u16>,
-}
-
-impl NodeState {
- pub fn new() -> Self {
- return Self {
- consul_node_name: None,
- consul_url: None,
- refresh_time: None,
- expiration_time: None,
- public_ip: None,
- private_ip: None,
- public_ports: Vec::new()
- };
- }
-}