pub fn new(db: PgDB, handle: Handle) -> Self {
        Engine {
            fact_db: Rc::new(db),
            funcs: HashMap::new(),
            rules: HashMap::new(),
            signals: Vec::new(),
            rule_profiles: Vec::new(),
            event_loop: handle,
            start_time: Instant::now(),
            limiter: None,
        }
    }
/// Create a fresh engine by handing it a fact database to use
Create a fresh engine by handing it a fact database to use
Create a fresh engine by handing it a fact database to use
pub fn new(db: PgDB, handle: Handle) -> Self {
        Engine {
            fact_db: Rc::new(db),
            funcs: HashMap::new(),
            rules: HashMap::new(),
            signals: Vec::new(),
            rule_profiles: Vec::new(),
            event_loop: handle,
            start_time: Instant::now(),
            limiter: None,
        }
    }
pub fn new ( db : PgDB , handle : Handle ) -> Self { Engine { fact_db : Rc :: new ( db ) , funcs : HashMap :: new ( ) , rules : HashMap :: new ( ) , signals : Vec :: new ( ) , rule_profiles : Vec :: new ( ) , event_loop : handle , start_time : Instant :: now ( ) , limiter : None , } }
Create a fresh engine by handing it a fact database to use
Create a fresh engine by handing it a fact database to use
db
PgDB
handle
Handle
db
PgDB
handle
Handle