Trait ResponseVarSubscribe
Source pub trait ResponseVarSubscribe<T: VarValue> {
// Required methods
fn on_pre_rsp(&self, handler: Handler<OnVarArgs<T>>) -> VarHandle;
fn on_rsp(&self, handler: Handler<OnVarArgs<T>>) -> VarHandle;
}
Expand description
Extension methods to subscribe app handlers to a response variable.
Add a handler that is called once when the response is received,
the handler is called before all other UI updates.
The handler is not called if already is_done, in this case a dummy handle is returned.
Add a handler that is called once when the response is received,
the handler is called after all other UI updates.
The handler is not called if already is_done, in this case a dummy handle is returned.