pub struct A3sEventBusFlowEventSink { /* private fields */ }Expand description
Sink that publishes bridged Flow events into an A3S Event bus.
The sink uses A3S Event as the transport and history layer while preserving
the durable Flow event store as the source of truth. Publish failures are
recorded in last_error() and logged; they do not roll back workflow events
that have already been committed.
Implementations§
Source§impl A3sEventBusFlowEventSink
impl A3sEventBusFlowEventSink
Sourcepub fn new(bus: Arc<EventBus>) -> Self
pub fn new(bus: Arc<EventBus>) -> Self
Creates a sink using the default flow category and a3s-flow source.
Sourcepub fn with_category(self, category: impl Into<String>) -> Self
pub fn with_category(self, category: impl Into<String>) -> Self
Replaces the A3S Event category.
Sourcepub fn with_source(self, source: impl Into<String>) -> Self
pub fn with_source(self, source: impl Into<String>) -> Self
Replaces the A3S Event source identity.
Sourcepub async fn last_error(&self) -> Option<String>
pub async fn last_error(&self) -> Option<String>
Returns the most recent conversion or publish error.
Sourcepub fn to_a3s_event(&self, event: &A3sFlowEvent) -> Result<Event, Error>
pub fn to_a3s_event(&self, event: &A3sFlowEvent) -> Result<Event, Error>
Converts a bridged record into the A3S Event transport shape.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for A3sEventBusFlowEventSink
impl !RefUnwindSafe for A3sEventBusFlowEventSink
impl !UnwindSafe for A3sEventBusFlowEventSink
impl Send for A3sEventBusFlowEventSink
impl Sync for A3sEventBusFlowEventSink
impl Unpin for A3sEventBusFlowEventSink
impl UnsafeUnpin for A3sEventBusFlowEventSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more