Modules§
Macros§
- rumtk_
async_ sleep - Sleep for some duration of time in an async context. Meaning, we can be awaited.
- rumtk_
cache_ fetch - rumtk_
connect - This macro is a convenience macro that allows you to establish a connection to an endpoint. It creates and instance of [tcp::RUMClientHandle].
- rumtk_
create_ server - Macro for creating a server instance.
- rumtk_
create_ task - This macro creates an async body that calls the async closure and awaits it.
- rumtk_
create_ task_ args - Creates an instance of SafeTaskArgs with the arguments passed.
- rumtk_
deserialize - Deserialization macro which will take a JSON string representation and return an instance of the specified type.
- rumtk_
exec_ task - Convenience macro for packaging the task components and launching the task in one line.
- rumtk_
get_ ip_ port - Convenience macro for obtaining the ip and port off a string with format
ip:port
. - rumtk_
init_ threads - First, let’s make sure we have tokio initialized at least once. The runtime created here will be saved to the global context so the next call to this macro will simply grab a reference to the previously initialized runtime.
- rumtk_
new_ task_ queue - rumtk_
print_ license_ notice - Prints the mandatory GPL License Notice to terminal!
- rumtk_
read_ stdin - Reads STDIN and unescapes the incoming message. Return this unescaped message.
- rumtk_
resolve_ task - This macro awaits a future.
- rumtk_
serialize - Serialization macro which will take an object instance decorated with Serialize trait from serde and return the JSON string representation.
- rumtk_
sleep - Sleep a duration of time in a sync context, so no await can be call on the result.
- rumtk_
spawn_ task - Puts task onto the runtime queue.
- rumtk_
start_ server - Macro for starting the server. When a server is created, it does not start accepting clients right away. You need to call this macro to do that or call [tcp::RUMServerHandle::start] directly.
- rumtk_
wait_ on_ task - Using the initialized runtime, wait for the future to resolve in a thread blocking manner!
- rumtk_
write_ stdout - Escapes a message and writes it to stdout via the print! macro.