Re-exports§
pub use paste;
Modules§
Macros§
- declare_
event - Helper for declaring a named event handler callback signature.
Structs§
- Callback
Signature - CallbackSignature is a bit sugar to aid with statically typing event callback function invocation.
- LuaConfig
Statics§
Functions§
- any_err
- Helper for mapping back to lua errors
- async_
call_ callback - async_
call_ callback_ non_ default - decorate_
callback_ name - does_
callback_ allow_ multiple - from_
lua_ value - Convert from a lua value to a deserializable type, with a slightly more helpful error message in case of failure. NOTE: the “, while processing” portion of the error messages generated here is coupled with a regex in typing.lua!
- get_
or_ create_ module - get_
or_ create_ sub_ module - Given a name path like
foo
orfoo.bar.baz
, sets up the module registry hierarchy to instantiate that path. Returns the leaf node of that path to allow the caller to register/assign functions etc. into it - impl_
pairs_ and_ index - Provides implementations of __pairs, __index and __len metamethods for a type that is Serialize and UserData. Neither implementation is considered to be ideal, as we must first serialize the value into a json Value which is then either iterated over, or indexed to produce the appropriate result for the metamethod.
- is_
validating - load_
config - materialize_
to_ lua_ value - This function will try to obtain a native lua representation of the provided value. It does this by attempting to iterate the pairs of any userdata it finds as either the value itself or the values of a table value by recursively applying materialize_to_lua_value to the value. This produces a lua value that can then be processed by the Deserialize impl on Value.
- register
- serialize_
options - set_
gc_ on_ put - Set the gc on put percentage chance, in the range 0-100
- set_
max_ age - set_
max_ spare - set_
max_ use - set_
policy_ path - set_
validation_ failed - validation_
failed