diff --git a/src/machine.rs b/src/machine.rs index d7fb90e..4ad62ed 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -22,6 +22,8 @@ use smol::channel::{Receiver, Sender}; use futures_signals::signal::*; +pub type ID = Uuid; + /// Status of a Machine #[derive(Clone, Copy, PartialEq, Eq, Debug, Serialize, Deserialize)] pub enum Status { diff --git a/src/network.rs b/src/network.rs index 5e4559d..9a72bfd 100644 --- a/src/network.rs +++ b/src/network.rs @@ -1,5 +1,8 @@ use futures_signals::signal::Signal; +use crate::machine; +use crate::access; + struct Network { } @@ -24,10 +27,12 @@ impl Network { } } +/// The internal bffh event type +/// +/// Everything that BFFH considers an event is contained in an instance of this. +#[derive(PartialEq, Eq, Clone, PartialOrd, Ord, Debug)] enum Event { - -} - -trait Filter { - fn filter(&self, f: Fn(&S) -> bool); + /// An user wants to use a machine + // TODO: Define /what/ an user wants to do with said machine? + MachineRequest(machine::ID, access::UserIdentifer), }