Expand description
In-memory SEDA component for rust-camel — asynchronous staging channel between routes sharing the same context via bounded queues.
Main types: SedaComponent, SedaEndpoint, SedaConsumer, SedaProducer.
Structs§
- Seda
Component - Cloning shares the endpoint registry, so a clone registered into a
CamelContextand the original handle observe the same per-endpoint state (theMockComponentpattern). - Seda
Config - Configuration parsed from a SEDA URI.
Enums§
Functions§
- is_
no_ active_ consumers_ gate - True for the SEDA producer’s startup-race rejections: the pre-enqueue
gate that fires when no consumer has started yet — Single mode’s “has
no active consumers” and Fanout mode’s “has no active subscribers” (the
error variant is shared
EndpointCreationFailed, so the wording is the discriminator; this crate owns the message text). Both reject BEFORE enqueue but INSIDE the caller’s pipeline: steps that already ran (e.g. route-interception divert copies) have executed, so RETRYING the send duplicates their side effects. Senders that must not retry use this predicate to fail fast instead (rc-zjrx); readiness probing withSedaComponent::has_active_consumeravoids the error up front.