Skip to main contentCrate speare
Source - Ctx
- The context surrounding the current
Actor. - Handle
- A handle to send messages to or stop an
Actor. - Node
- Request
- Represents a request sent to a
Actor.
Request holds the data sent to a Actor and provides a channel to reply back to the sender. - Response
Response<Res> is used to asynchronously wait for and retrieve the result of a Request<Req, Res> sent to a Actor.- SourceSet
- A composable collection of message sources (intervals and streams) for an actor.
- SpawnBuilder
- Builder for configuring and spawning a child
Actor. Created via Ctx::actor.
- Backoff
- Delay strategy between restart attempts.
- ExitReason
- Enumerates the reasons why a
Actor might exit. - Limit
- Maximum number of restarts allowed.
- PubSubError
- RegistryError
- ReqErr
- Represents a failure when waiting for a
Response<_> - Supervision
- Defines how a parent reacts when a child actor fails.
- Actor
- A thin abstraction over tokio tasks and flume channels, allowing for easy message passing
with a supervision tree to handle failures.
- Sources
- req_res
- Creates a paired
Request<Req, Res> and Response<Res> for communication between speare actors.