pub struct InMemorySubscriptionHub { /* private fields */ }Expand description
Carries in memory subscription hub data across a host-port boundary. Constructing the value does not call the host; the port method that receives it documents any adapter, network, or storage effect.
Implementations§
Source§impl InMemorySubscriptionHub
impl InMemorySubscriptionHub
Sourcepub fn publish(&self, frame: EventFrame) -> Result<(), AgentError>
pub fn publish(&self, frame: EventFrame) -> Result<(), AgentError>
Mutates the in-memory event/subscription state and may wake local subscribers. It does not persist durable journal truth or call network sinks.
Sourcepub fn publish_all(
&self,
frames: impl IntoIterator<Item = EventFrame>,
) -> Result<(), AgentError>
pub fn publish_all( &self, frames: impl IntoIterator<Item = EventFrame>, ) -> Result<(), AgentError>
Mutates the in-memory event/subscription state and may wake local subscribers. It does not persist durable journal truth or call network sinks.
Sourcepub fn expire_live_before(&self, event_seq: u64) -> Result<(), AgentError>
pub fn expire_live_before(&self, event_seq: u64) -> Result<(), AgentError>
Mutates the in-memory event/subscription state and may wake local subscribers. It does not persist durable journal truth or call network sinks.
Sourcepub fn frames(&self) -> Result<Vec<EventFrame>, AgentError>
pub fn frames(&self) -> Result<Vec<EventFrame>, AgentError>
Builds the frames value. This is data construction and performs no I/O, journal append, event publication, or process work.
Trait Implementations§
Source§impl Clone for InMemorySubscriptionHub
impl Clone for InMemorySubscriptionHub
Source§fn clone(&self) -> InMemorySubscriptionHub
fn clone(&self) -> InMemorySubscriptionHub
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more