pub struct Engine { /* private fields */ }Implementations§
Source§impl Engine
impl Engine
pub fn new(config: EngineConfig) -> Result<Engine>
pub fn eval_script(&self, name: &str, source: &str) -> Result<()>
pub fn eval_json(&self, expression: &str) -> Result<J>
pub fn run_gc(&mut self)
pub fn tick(&mut self) -> Duration
pub fn run_for(&mut self, d: Duration)
pub fn current_time(&self) -> Option<f64>
pub fn output_failed(&self) -> bool
pub fn output_counts(&self) -> [u64; 8]
pub fn status(&self) -> J
Auto Trait Implementations§
impl !RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl !UnwindSafe for Engine
impl Freeze for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more