pub trait RemotableActor: Actorwhere
Self::Params: RemoteMessage,{
// Required method
fn gspawn(
proc: &Proc,
name: &str,
serialized_params: Data,
) -> Pin<Box<dyn Future<Output = Result<ActorId, Error>> + Send>>;
// Provided method
fn get_type_id() -> TypeId { ... }
}
Expand description
A RemotableActor may be spawned remotely, and receive messages across process boundaries.
Required Methods§
Provided Methods§
Sourcefn get_type_id() -> TypeId
fn get_type_id() -> TypeId
The type ID of this actor.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.