From 84a9a0ccee713e26a28ff5e54ea3776085d93b5f Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Mon, 22 Jun 2020 01:48:59 +0200 Subject: Updating just like... a bunch of shit --- src/state/mod.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/state/mod.rs (limited to 'src/state') 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; + +/// Holds all state handles for the application +pub(crate) struct OctoState {} + +impl OctoState { + pub(crate) fn new() -> StateRef { + Arc::new(Self {}) + } +} -- cgit v1.2.3