Skip to main content

HandlerInterface

Derive Macro HandlerInterface 

Source
#[derive(HandlerInterface)]
{
    // Attributes available to this derive:
    #[interface]
}
Expand description

Derives the HandlerInterface trait for an enum, allowing it to act as a handler interface for an actor. Each variant must contain a single unnamed field of type Envelope<T>.