pub struct TestActor<M> { /* private fields */ }Implementations§
Source§impl<M> TestActor<M>
impl<M> TestActor<M>
pub fn prepare_args( registry: TestActorRegistry, ) -> (Args<M>, impl Future<Output = Option<ActorID>>)
pub async fn start( registry: TestActorRegistry, system: System, spawn_opts: SpawnOpts, ) -> Result<Self, SysSpawnError>
pub async fn wait(&self) -> Exit
pub fn system(&self) -> &System
pub fn actor_id(&self) -> ActorID
Source§impl<M> TestActor<M>
impl<M> TestActor<M>
pub async fn post_message(&self, message: M)
pub async fn init_ack(&self, value: Option<ActorID>)
pub async fn exit(&self, reason: Exit)
pub async fn set_trap_exit(&self, set_to: bool)
pub async fn next_event(&self, timeout: Duration) -> Option<Event<M>>
pub async fn set_link(&self, actor: ActorID, link: bool)
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for TestActor<M>
impl<M> !RefUnwindSafe for TestActor<M>
impl<M> Send for TestActor<M>where
M: Send,
impl<M> Sync for TestActor<M>where
M: Send,
impl<M> Unpin for TestActor<M>
impl<M> !UnwindSafe for TestActor<M>
Blanket Implementations§
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