mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-21 22:47:55 +01:00
Adds an event network draft
This commit is contained in:
parent
67c5b4a927
commit
f53b4eac8e
@ -17,6 +17,7 @@ mod error;
|
|||||||
mod machine;
|
mod machine;
|
||||||
mod connection;
|
mod connection;
|
||||||
mod registries;
|
mod registries;
|
||||||
|
mod network;
|
||||||
|
|
||||||
use signal_hook::iterator::Signals;
|
use signal_hook::iterator::Signals;
|
||||||
|
|
||||||
|
@ -19,7 +19,15 @@ impl Network {
|
|||||||
///
|
///
|
||||||
/// Idea being that bffh builds an event network that filters an incoming event into an
|
/// Idea being that bffh builds an event network that filters an incoming event into an
|
||||||
/// the appropiate (sub)set of signal handlers based on pretty dynamic configuration.
|
/// the appropiate (sub)set of signal handlers based on pretty dynamic configuration.
|
||||||
pub fn filter<S: Signal, F: Fn() -> bool>(&mut self) {
|
pub fn filter<B, S: Signal<Item=B>, F: Fn(&B) -> bool>(&mut self, ) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum Event {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
trait Filter<S> {
|
||||||
|
fn filter(&self, f: Fn(&S) -> bool);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user