pub trait TraitCallbackArg<A> {
    fn call(&self, a: A);
    fn queue(&self, a: A);
    fn emit(&self, a: A);
}

Required Methods

This method executes the callback immediately. But it may fail if the related component is already in progress of updating or rendering (it means that the component is being borrowed).

This method puts the callback in update queue. The queue will be executed if there is a component that is currently being update. But if no component is be update, the update queue will not be execute until an event occurs.

Queue the callback if there is no executing on progress. Otherwise, the callback will be add to update queue. If this fails (maybe because of a bug) to work, you can try .call or .queue.

Implementors