pub struct Scope {
pub props: Map<String, Value>,
pub state: State,
pub live: BTreeMap<String, Signal<Value>>,
pub on_event: Rc<dyn Fn(&str, Value)>,
}Expand description
What a tree is mounted with: the props by name, the state, the live
collections by name (each { rows, status }), and where its events go.
Fields§
§props: Map<String, Value>§state: State§live: BTreeMap<String, Signal<Value>>§on_event: Rc<dyn Fn(&str, Value)>(handler, event payload) for each on: that fires.
Auto Trait Implementations§
impl !RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl !UnwindSafe for Scope
impl Forget for Scope
impl Freeze for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
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