Skip to main content

UpdateFn

Type Alias UpdateFn 

Source
pub type UpdateFn = fn(Value, &str, Value, WireContext) -> Pin<Box<dyn Future<Output = WireResult> + Send + '_>>;
Expand description

Async-aware function types for the component factory.

Both sync and async render/mount are supported — the macro always wraps them into a BoxFuture so the runtime is uniformly async.