pub trait Identify {
    fn id(&self) -> usize;
    fn name(&self) -> Arc<str>;
}
Expand description

Interface for uniquely identifying actors. Mainly useful for logging and debugging.

This is separate from Address because an Address implementer might want to show id/name in a Debug impl, but Address will only be available for specific M for which the actor implements Handler. M is the generic message type. That causes issues. This trait allows for identity information to available in places where no M is available.

Required Methods

Get a unique identifier for this actor. You can use this to verify whether two addresss deliver to the same actor.

A human readable name of the actor.

Implementations on Foreign Types

Implementors