Crate absinthe_macros
source ·Expand description
Absinthe Macros
Absinthe Macros is a library that provides macros for Absinthe.
Features
- actor! - The actor! macro can be used to ‘actorize’ functions & structs.
- send! - The send! macro can be used to send a message to an actor, and wait for a response.
- notify! - The notify! macro can be used to send a message to an actor, and don’t wait for a response.
Macros
- Create an actor. Can be used on a struct or a function. If actorizing a struct, the struct must have an
impl
block. Theimpl
block must have the same name as the struct. - Send a message to an actor, and don’t wait for a response.
- Send a message to an actor, and wait for a response.