Struct virtual_view::Instance
[−]
[src]
pub struct Instance { pub state: Props, pub context: Props, pub updater: Updater, }
Fields
state: Props
context: Props
updater: Updater
Methods
impl Instance
[src]
pub fn send<N, V, F>(&self, name: N, json: V, f: F) where
N: Into<String>,
V: Into<Value>,
F: 'static + Fn(Value),
[src]
N: Into<String>,
V: Into<Value>,
F: 'static + Fn(Value),
pub fn send_no_callback<N, V>(&self, name: N, json: V) where
N: Into<String>,
V: Into<Value>,
[src]
N: Into<String>,
V: Into<Value>,
pub fn state(&self) -> &Props
[src]
pub fn context(&self) -> &Props
[src]
pub fn updater(&self) -> &Updater
[src]
pub fn set_state<F>(&self, f: F) where
F: 'static + Send + Fn(&Props) -> Props,
[src]
F: 'static + Send + Fn(&Props) -> Props,