Crate rio_macros

Source
Expand description

Derive macros to automatically implement the most common traits from rio_rs

Macros§

make_registry
This will define a registry, at the same time it will create the registry to be used by the server and the types that the client can use for such registry

Derive Macros§

ManagedState
Implements State for you struct’s attributes. Creating set_state and get_state for each attribute decorated with #[managed_state]
Message
Implements the [rio_rs::registry::Message] trait for the struct. This is a blank implementation
TypeName
Implements the trait [rio_rs::registry::IdentifiableType]
WithId
This macro implements [rio_rs::service_object::WithId], which is needed for writing services using the framework