usecrate::actor::context::ActorContext;usecrate::actor::error::ActorError;/// Actor trait — the fundamental unit of computation.
pubtraitActor: Send + 'static {/// Message type this actor handles.
typeMessage:Send+'static;/// Handle a message.
////// Called for each message received by the actor.
/// Must return quickly — don't block or loop forever.
fnhandle(&mutself,
message:Self::Message,
context:&mut ActorContext,
)->Result<(), ActorError>;}