Expand description
Object-safe event-bus contract: traits, value types, and the generic Stream bus.
Publisher/Subscriber/Bus— dyn-safe core traitsPublisherExt/SubscriberExt— monomorphic convenience extensionsHandlerreceivesBox<dyn DeliveryHandle>Delivery(read) +DeliveryControl(consumeBox<Self>) — the compiler enforces finalize-at-most-oncestream::StreamBusoverstream::StreamBackend; concrete backends live in sibling crates (eventbus-memory,eventbus-redis).
See the eventbus facade crate for ready-to-use
backends behind feature flags.
Re-exports§
pub use contract::delivery::DeliveryInspector;pub use contract::delivery::DeliveryOutcome;pub use contract::delivery::DeliveryState;pub use contract::delivery::PartialDeliveryState;pub use contract::message::SchemaDescriptor;pub use contract::message::TraceContext;pub use contract::message::HEADER_BAGGAGE;pub use contract::message::HEADER_CONTENT_TYPE;pub use contract::message::HEADER_DEAD_LETTER_REASON;pub use contract::message::HEADER_EVENT_VERSION;pub use contract::message::HEADER_IDEMPOTENCY_KEY;pub use contract::message::HEADER_RETRY_ATTEMPT;pub use contract::message::HEADER_RETRY_REASON;pub use contract::message::HEADER_TRACE_PARENT;pub use contract::message::HEADER_TRACE_STATE;pub use contract::AckMode;pub use contract::BackpressurePolicy;pub use contract::ConsumerBalanceMode;pub use contract::DeliveryGuarantee;pub use contract::GuaranteeMatrix;pub use contract::OrderingMode;pub use contract::OverflowStrategy;pub use contract::PublishConfirmation;pub use contract::SubscriptionSemantics;pub use error::EventBusError;pub use eventbus::BatchError;pub use eventbus::BatchOutcome;pub use eventbus::Bus;pub use eventbus::Codec;pub use eventbus::ConsumerGroup;pub use eventbus::ConsumerName;pub use eventbus::Delivery;pub use eventbus::DeliveryControl;pub use eventbus::DeliveryHandle;pub use eventbus::Handler;pub use eventbus::Headers;pub use eventbus::Message;pub use eventbus::MessageId;pub use eventbus::PublishOptions;pub use eventbus::Publisher;pub use eventbus::PublisherExt;pub use eventbus::Subscriber;pub use eventbus::SubscriberExt;pub use eventbus::Subscription;pub use eventbus::SubscriptionConfig;pub use eventbus::SubscriptionConfigBuilder;pub use eventbus::Topic;pub use stream::ErrorObserver;pub use stream::ErrorScope;pub use stream::FetchedEntry;pub use stream::StreamBus;pub use stream::StreamBusOptions;