pub trait ActorRef<MsgT>:
DynClone
+ Send
+ Debugwhere
MsgT: ActorMsg + 'static,{
// Required methods
fn send(&mut self, message: MsgT, delay: Option<Duration>);
fn set_handler(&mut self, handler: DynMsgHandler<MsgT>);
fn spawn_async_send(&mut self, f: DynFuture<MsgT>, delay: Option<Duration>);
fn spawn_thread_blocking_send(
&mut self,
f: DynLazy<MsgT>,
delay: Option<Duration>,
);
}