Skip to main content

remote

Attribute Macro remote 

Source
#[remote]
Expand description

Attribute macro applied to impl Actor for MyActor { ... } to install the Address<Self> to Recipient<RemoteMessage> conversion function used by acktor-ipc.

Injects an override of Actor::erased_recipient_fn so every Address<Self> carries an inline conversion to Recipient<RemoteMessage>.

§Example

use acktor_derive::remote;

#[remote]
impl Actor for MyActor {
    type Error = anyhow::Error;
    type Context = Context<Self>;
}