pub(crate) struct RuntimeHostState {
pub(crate) dom: Rc<RefCell<DomBridge>>,
pub(crate) wasm: Rc<RefCell<WasmState>>,
pub(crate) pending_xhrs: Rc<RefCell<BTreeMap<u64, Value>>>,
pub(crate) dom_wrappers: Rc<RefCell<BTreeMap<usize, Weak<RefCell<Obj>>>>>,
pub(crate) dom_recent: Rc<RefCell<(Vec<ObjRef>, usize)>>,
pub(crate) synced_id_vars: Rc<RefCell<BTreeMap<String, usize>>>,
}Expand description
JsRuntime::host_state の DOM・Web API 用実体。
Fields§
§dom: Rc<RefCell<DomBridge>>§wasm: Rc<RefCell<WasmState>>§pending_xhrs: Rc<RefCell<BTreeMap<u64, Value>>>§dom_wrappers: Rc<RefCell<BTreeMap<usize, Weak<RefCell<Obj>>>>>DOM ハンドルの表(dom_obj)。ランタイムで共有する。以前は Interp ごとに持っていたので、<script> や
コールバックごとに新しい Interp ができると同じノードのハンドルが別物になり、el == el2(緩い比較)が偽になっていた。
dom_recent: Rc<RefCell<(Vec<ObjRef>, usize)>>§synced_id_vars: Rc<RefCell<BTreeMap<String, usize>>>Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeHostState
impl !Send for RuntimeHostState
impl !Sync for RuntimeHostState
impl !UnwindSafe for RuntimeHostState
impl Freeze for RuntimeHostState
impl Unpin for RuntimeHostState
impl UnsafeUnpin for RuntimeHostState
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