diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-20 09:29:35 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-20 09:29:35 +0100 |
commit | a23b897b5c3c9ee721b793e26401d1863d97f84e (patch) | |
tree | d22a4fb5735bc72704f2622a4748ec3ba5c6189e /lib/src/reactor/mod.rs | |
parent | 860177170ce583be7c7d86d8d81fdc6a7c402dc4 (diff) | |
parent | 5a58021581187d11fb26d0de9d19514e6383956f (diff) |
Merge branch 'gossipping-gui'
Diffstat (limited to 'lib/src/reactor/mod.rs')
-rw-r--r-- | lib/src/reactor/mod.rs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/src/reactor/mod.rs b/lib/src/reactor/mod.rs deleted file mode 100644 index 5299851..0000000 --- a/lib/src/reactor/mod.rs +++ /dev/null @@ -1,28 +0,0 @@ -use std::sync::Arc; -use std::fmt::Debug; - -use anyhow::Result; -use tokio::sync::RwLock; - -use crate::profile::Profile; - -mod gossip; -mod device; -mod account; -mod ctrl; - -use ctrl::ReactorReceiver; - -#[async_trait::async_trait] -pub trait Reactor { - type Request: Debug + Send + Sync; - type Reply: Debug + Send + Sync; - - async fn run(self) -> Result<()>; -} - -pub trait ReactorBuilder { - type Reactor: Reactor; - - fn build_with_receiver(self, rr: ReactorReceiver<<Self::Reactor as Reactor>::Request, <Self::Reactor as Reactor>::Reply>) -> Self::Reactor; -} |