Struct agner_test_actor::api::TestActor
source · [−]pub struct TestActor<M> { /* private fields */ }Implementations
sourceimpl<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>where
M: Send + Sync + Unpin + 'static,
pub async fn wait(&self) -> Exit
pub fn system(&self) -> &System
pub fn actor_id(&self) -> ActorID
sourceimpl<M> TestActor<M>
impl<M> TestActor<M>
pub async fn post_message(&self, message: M)where
M: Send + Sync + Unpin + 'static,
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> !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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more