pub struct Engine {
pub model: AppModel,
pub client: Arc<UaClient>,
pub rt: Runtime,
pub update_tx: UnboundedSender<UiUpdate>,
}Fields§
§model: AppModel§client: Arc<UaClient>§rt: Runtime§update_tx: UnboundedSender<UiUpdate>Implementations§
Source§impl Engine
impl Engine
pub fn new( rt: Runtime, log_rx: UnboundedReceiver<UiUpdate>, ) -> (Self, UnboundedReceiver<UiUpdate>)
pub fn apply_update<C: FrontendCtx>(&mut self, ctx: &C, update: UiUpdate)
pub fn dispatch<C: FrontendCtx>(&mut self, ctx: &C, action: UiAction)
Auto Trait Implementations§
impl !Freeze for Engine
impl !RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl !UnwindSafe 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