pub struct SimulatedActorRef<MsgT> { /* private fields */ }Trait Implementations§
Source§impl<MsgT> ActorRef<MsgT> for SimulatedActorRef<MsgT>where
MsgT: ActorMsg,
impl<MsgT> ActorRef<MsgT> for SimulatedActorRef<MsgT>where
MsgT: ActorMsg,
fn send(&mut self, message: MsgT, delay: Option<Duration>)
fn set_handler(&mut self, handler: DynMsgHandler<MsgT>)
fn spawn_async_send( &mut self, f: impl Future<Output = MsgT> + 'static, delay: Option<Duration>, )
fn spawn_thread_blocking_send( &mut self, f: impl FnOnce() -> MsgT + Send + 'static, delay: Option<Duration>, )
Source§impl<MsgT> Clone for SimulatedActorRef<MsgT>
impl<MsgT> Clone for SimulatedActorRef<MsgT>
Auto Trait Implementations§
impl<MsgT> Freeze for SimulatedActorRef<MsgT>
impl<MsgT> RefUnwindSafe for SimulatedActorRef<MsgT>
impl<MsgT> Send for SimulatedActorRef<MsgT>where
MsgT: Send,
impl<MsgT> Sync for SimulatedActorRef<MsgT>where
MsgT: Send,
impl<MsgT> Unpin for SimulatedActorRef<MsgT>
impl<MsgT> UnwindSafe for SimulatedActorRef<MsgT>
Blanket Implementations§
Source§impl<ActorRefT, MsgT> ActorRef<MsgT> for ActorRefT
impl<ActorRefT, MsgT> ActorRef<MsgT> for ActorRefT
fn send(&mut self, message: MsgT, delay: Option<Duration>)
fn set_handler(&mut self, handler: Box<dyn TypedMsgHandler<MsgT>>)
fn spawn_async_send( &mut self, f: Pin<Box<dyn Future<Output = MsgT> + Send>>, delay: Option<Duration>, )
fn spawn_thread_blocking_send( &mut self, f: Box<dyn FnOnce() -> MsgT + Send>, delay: Option<Duration>, )
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more