pub struct LiveEngine { /* private fields */ }Expand description
Owns the reactive worker + the observer registration. Drop joins
the worker and unregisters the observer (via the ObserverHandle).
Implementations§
Source§impl LiveEngine
impl LiveEngine
Sourcepub fn new(db: Arc<Database>, schema: Arc<SchemaIr>) -> Arc<Self>
pub fn new(db: Arc<Database>, schema: Arc<SchemaIr>) -> Arc<Self>
Builds the engine, registers the reactive observer on db’s
notifier, and spawns the worker.
Trait Implementations§
Source§impl Drop for LiveEngine
impl Drop for LiveEngine
Auto Trait Implementations§
impl Freeze for LiveEngine
impl !RefUnwindSafe for LiveEngine
impl Send for LiveEngine
impl Sync for LiveEngine
impl Unpin for LiveEngine
impl UnsafeUnpin for LiveEngine
impl !UnwindSafe for LiveEngine
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