Struct virtual_view::Updater
[−]
[src]
pub struct Updater(_);
Methods
impl Updater
[src]
pub fn new(id: String, depth: usize, renderer: Renderer) -> Self
[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 set_state<F>(&self, f: F) where
F: 'static + Send + Fn(&Props) -> Props,
[src]
F: 'static + Send + Fn(&Props) -> Props,
pub fn force_update(&self)
[src]
Trait Implementations
impl Clone for Updater
[src]
fn clone(&self) -> Updater
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Send for Updater
[src]
impl Sync for Updater
[src]
impl PartialEq for Updater
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Hash for Updater
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Updater
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more