pub struct Runtime {
pub signals: Rc<RefCell<Vec<Box<dyn Any>>>>,
pub effects: Rc<RefCell<Vec<Box<dyn Fn()>>>>,
pub running_effect: Rc<RefCell<Option<EffectId>>>,
pub subscribers: Rc<RefCell<HashMap<SignalId, HashSet<EffectId>>>>,
}
Expand description
Runtime
Fields§
§signals: Rc<RefCell<Vec<Box<dyn Any>>>>
§effects: Rc<RefCell<Vec<Box<dyn Fn()>>>>
§running_effect: Rc<RefCell<Option<EffectId>>>
§subscribers: Rc<RefCell<HashMap<SignalId, HashSet<EffectId>>>>
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn run_effect(&'static self, effect_id: EffectId)
pub fn run_effect(&'static self, effect_id: EffectId)
Run Effect
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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