Trait thespis::Identify[][src]

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

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

Required methods

fn id(&self) -> usize[src]

Get a unique identifier for this actor, so you can verify if two addresss deliver to the same actor.

fn name(&self) -> Option<Arc<str>>[src]

A human readable name of the actor.

Loading content...

Implementations on Foreign Types

impl<T> Identify for Box<T> where
    T: Identify
[src]

impl<T> Identify for &T where
    T: Identify
[src]

Loading content...

Implementors

Loading content...