Skip to main content

register_spawnable

Macro register_spawnable 

Source
macro_rules! register_spawnable {
    ($actor:ty) => { ... };
}
Expand description

Register an actor type so that it can be spawned remotely. The actor type must implement typeuri::Named, which will be used to identify the actor globally.

Example:

struct MyActor { ... }

register_spawnable!(MyActor);