Skip to main content

Crate speare

Crate speare 

Source

Modules§

mini

Structs§

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.

Enums§

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.

Traits§

Actor
A thin abstraction over tokio tasks and flume channels, allowing for easy message passing with a supervision tree to handle failures.
Sources

Functions§

req_res
Creates a paired Request<Req, Res> and Response<Res> for communication between speare actors.