pub struct EventSourcedRuntime { /* private fields */ }Expand description
Runtime resources supplied only when a behavior is spawned.
Implementations§
Source§impl EventSourcedRuntime
impl EventSourcedRuntime
Sourcepub fn new(journal: Arc<dyn Journal>) -> Self
pub fn new(journal: Arc<dyn Journal>) -> Self
Creates runtime configuration using an event journal and no snapshot store.
Sourcepub fn with_snapshot_store(self, snapshot_store: Arc<dyn SnapshotStore>) -> Self
pub fn with_snapshot_store(self, snapshot_store: Arc<dyn SnapshotStore>) -> Self
Adds a snapshot store used by recovery and snapshot saves.
Sourcepub fn with_writer_uuid(self, writer_uuid: impl Into<String>) -> Self
pub fn with_writer_uuid(self, writer_uuid: impl Into<String>) -> Self
Overrides the stable identifier written by this spawned writer instance.
Sourcepub fn with_topic_capacity(self, capacity: usize) -> Self
pub fn with_topic_capacity(self, capacity: usize) -> Self
Sets the per-subscriber published-event topic capacity.
Auto Trait Implementations§
impl !RefUnwindSafe for EventSourcedRuntime
impl !UnwindSafe for EventSourcedRuntime
impl Freeze for EventSourcedRuntime
impl Send for EventSourcedRuntime
impl Sync for EventSourcedRuntime
impl Unpin for EventSourcedRuntime
impl UnsafeUnpin for EventSourcedRuntime
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<S> IntoEventHandlerResult<S> for S
impl<S> IntoEventHandlerResult<S> for S
Source§fn into_event_handler_result(self) -> Result<S, PersistenceError>
fn into_event_handler_result(self) -> Result<S, PersistenceError>
Converts this handler output into the runtime result.
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage