Expand description
This module defines a test actor. It is defined in a separate module
(outside of [crate::testing]) to ensure that it is compiled into
the bootstrap binary, which is not built in test mode (and anyway, test mode
does not work across crate boundaries)
Structs§
- Actor
Environment Observation - What an
ActorEnvironmentProbeobserved at construction and after its native instance was installed. - Actor
Environment Probe - A remote-spawn probe that optionally performs one nested ProcMesh spawn.
- Actor
Environment Probe Params - Construction parameters for
ActorEnvironmentProbe. - Cause
Supervision Event - A message that causes a supervision event. The one argument determines what kind of supervision event it’ll be.
- Failing
Create Test Actor - Forward
- A message to forward to a visit list of ports. Each port removes the next entry, and adds it to the ‘visited’ list.
- GetActor
Id - A message that returns the recipient actor’s id and cast message’s seq info.
- GetCast
Info - Just return the cast info of the sender.
- GetConfig
Attrs - GetResource
Rank - Next
Supervision Failure - A message to request the next supervision event delivered to WrapperActor. Replies with None if no supervision event is encountered within a timeout (10 seconds).
- SetConfig
Attrs - Sleep
Actor - A test actor that sleeps when it receives a Duration message. Used for testing timeout and abort behavior.
- Test
Actor - A simple test actor used by various unit tests.
- Test
Actor With Supervision Handling - A test actor that handles supervision events. It should be the parent of TestActor who can panic or cause a SIGSEGV.
- Wrapper
Actor - A small wrapper to handle supervision messages so they don’t need to reach the client. This just wraps and forwards all messages to TestActor. The supervision events are sent back to “supervisor”.
Enums§
Statics§
- ACTOR_
ENVIRONMENT_ TEST_ TAG - Persistent sentinel used by actor-environment transport tests.
Traits§
- GetCast
Info Client - The custom client trait for this message type.
- GetCast
Info Handler - The custom handler trait for this message type.