Crate absinthe_macros

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§

actor
Create an actor. Can be used on a struct or a function. If actorizing a struct, the struct must have an impl block. The impl block must have the same name as the struct.
notify
Send a message to an actor, and don’t wait for a response.
send
Send a message to an actor, and wait for a response.