use acktor::ActorId;
#[derive(Debug, Clone)]
pub enum ActorRef {
Index(ActorId),
Label(String),
}
impl From<ActorId> for ActorRef {
fn from(index: ActorId) -> Self {
Self::Index(index)
}
}
impl From<String> for ActorRef {
fn from(label: String) -> Self {
Self::Label(label)
}
}
impl From<&str> for ActorRef {
fn from(label: &str) -> Self {
Self::Label(label.to_string())
}
}