pub(crate) struct InterpHostState {
pub(crate) dom: Rc<RefCell<DomBridge>>,
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>>>,
pub(crate) doc_all_cache: RefCell<Option<(Vec<usize>, ObjRef)>>,
pub(crate) wasm: Rc<RefCell<WasmState>>,
pub(crate) pending_xhrs: Rc<RefCell<BTreeMap<u64, Value>>>,
pub(crate) io_callbacks: RefCell<Vec<Value>>,
pub(crate) ce_upgrade_target: Cell<Option<usize>>,
pub(crate) ce_depth: Cell<u32>,
pub(crate) ce_stack: RefCell<Vec<(usize, Value)>>,
pub(crate) dom_builtin_lookup: Cell<bool>,
}Expand description
Interp::host_state の DOM・Web API 用実体。
Fields§
§dom: Rc<RefCell<DomBridge>>§dom_wrappers: Rc<RefCell<BTreeMap<usize, Weak<RefCell<Obj>>>>>§dom_recent: Rc<RefCell<(Vec<ObjRef>, usize)>>§synced_id_vars: Rc<RefCell<BTreeMap<String, usize>>>§doc_all_cache: RefCell<Option<(Vec<usize>, ObjRef)>>§wasm: Rc<RefCell<WasmState>>§pending_xhrs: Rc<RefCell<BTreeMap<u64, Value>>>§io_callbacks: RefCell<Vec<Value>>§ce_upgrade_target: Cell<Option<usize>>§ce_depth: Cell<u32>§ce_stack: RefCell<Vec<(usize, Value)>>§dom_builtin_lookup: Cell<bool>Auto Trait Implementations§
impl !Freeze for InterpHostState
impl !RefUnwindSafe for InterpHostState
impl !Send for InterpHostState
impl !Sync for InterpHostState
impl !UnwindSafe for InterpHostState
impl Unpin for InterpHostState
impl UnsafeUnpin for InterpHostState
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