Module medea_jason::utils [−][src]
Miscellaneous utility structs and functions.
Modules
component | Implementation of the |
Structs
Callback0 | Wrapper for JS function with no arguments. |
Callback1 | Wrapper for a single argument JS function. |
Callback2 | Wrapper for a JS functions with two arguments. |
Component | Component is a base that helps managing reactive components. |
EventListener | Wrapper for closure that handles some |
EventListenerBindError | Failed to bind to |
HandlerDetachedError | Occurs if referenced value was dropped. |
IntervalHandle | Wrapper around interval timer ID. |
JasonError | Representation of app error exported to JS side. |
JsDuration | Wrapper around |
JsError | Wrapper for JS value which returned from JS side as error. |
JsonParseError | Wrapper for |
ResettableDelayHandle | Handler to delay which can be stopped and started over again |
TaskHandle |
Traits
AsProtoState | Abstraction over a state which can be transformed to the states from the
|
JsCaused | Representation of an error which can caused by error returned from the JS side. |
SynchronizableState | Abstraction of state which can be updated or created by the
|
Updatable | Abstraction over a state which can be updated by a client side. |
Functions
console_error | Prints provided message with |
delay_for |
|
get_property_by_name | Returns property of JS object by name if its defined. Converts the value with a given predicate. |
resettable_delay_for | Returns |
transpose_guarded | Returns |
window | Returns |
Derive Macros
JsCaused | Generate implementation of |