pub trait RunCallback {
// Required method
fn run_callback<P>(&mut self, callback: Callback<P>, props: P)
where P: 'static;
}Required Methods§
fn run_callback<P>(&mut self, callback: Callback<P>, props: P)where
P: 'static,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl RunCallback for World
A mutable reactive context. This allows write access to reactive data sources.
impl RunCallback for World
A mutable reactive context. This allows write access to reactive data sources.
Source§fn run_callback<P>(&mut self, callback: Callback<P>, props: P)where
P: 'static,
fn run_callback<P>(&mut self, callback: Callback<P>, props: P)where
P: 'static,
Invoke a callback with the given props.
Arguments:
callback- The callback to invoke.props- The props to pass to the callback.