Struct json_rules_engine_fork::Engine
source · pub struct Engine { /* private fields */ }
Implementations
sourceimpl Engine
impl Engine
pub fn new() -> Self
pub fn add_rule(&mut self, rule: Rule)
pub fn add_rules(&mut self, rules: Vec<Rule>)
pub fn load_rules(&mut self, rules: Vec<Rule>)
pub fn clear(&mut self)
pub fn add_event(&mut self, f: Rc<RwLock<dyn EventTrait>>)
pub async fn run<T: Serialize>(&mut self, facts: &T) -> Result<Vec<RuleResult>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more