fabaccess-bffh/src/initiator.rs

22 lines
420 B
Rust
Raw Normal View History

2020-12-01 10:21:39 +01:00
use std::future::Future;
2020-12-01 09:44:18 +01:00
use smol::Task;
2020-12-01 16:06:39 +01:00
use futures_signals::signal::Signal;
use crate::machine::Machine;
2020-12-01 10:21:39 +01:00
use crate::error::Result;
2020-12-01 09:44:18 +01:00
pub struct Initiator {
2020-12-01 16:06:39 +01:00
machine: Box<dyn Signal<Item=Machine> + Send>,
2020-12-01 10:21:39 +01:00
}
impl Initiator {
pub fn run(self) -> impl Future<Output=()> {
futures::future::pending()
}
2020-12-01 09:44:18 +01:00
}
pub fn load(config: &crate::config::Settings) -> Result<Vec<Initiator>> {
unimplemented!()
}