aboutsummaryrefslogtreecommitdiff
path: root/src/state
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-06-22 01:48:59 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-06-22 01:48:59 +0200
commit84a9a0ccee713e26a28ff5e54ea3776085d93b5f (patch)
tree9a0158ecc1668e8594881a4f9be7e54c8773d6a9 /src/state
parent67ad3b7a26ed0dc99f3324011fa8e5ed316a655a (diff)
Updating just like... a bunch of shit
Diffstat (limited to 'src/state')
-rw-r--r--src/state/mod.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/state/mod.rs b/src/state/mod.rs
new file mode 100644
index 0000000..5e7f927
--- /dev/null
+++ b/src/state/mod.rs
@@ -0,0 +1,14 @@
+//! Core octopus state handling
+
+use std::sync::Arc;
+
+pub(crate) type StateRef = Arc<OctoState>;
+
+/// Holds all state handles for the application
+pub(crate) struct OctoState {}
+
+impl OctoState {
+ pub(crate) fn new() -> StateRef {
+ Arc::new(Self {})
+ }
+}