pub struct EventStoreLifecycleOptions { /* private fields */ }Expand description
Non-serialized lifecycle policy for advanced event-store callers.
EventStoreConfig remains the serializable run policy. This type carries process-local
construction choices, such as the encoder registry and backend opener used when a kernel
opens a run.
Implementations§
Source§impl EventStoreLifecycleOptions
impl EventStoreLifecycleOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates options that use default_registry and RedbBackend.
Sourcepub fn with_registry_factory<F>(self, factory: F) -> Self
pub fn with_registry_factory<F>(self, factory: F) -> Self
Uses a caller-supplied encoder registry factory for each opened run.
Sourcepub fn with_encoder_registry(self, registry: EncoderRegistry) -> Self
pub fn with_encoder_registry(self, registry: EncoderRegistry) -> Self
Uses a caller-supplied encoder registry for each opened run.
Sourcepub fn with_backend_opener<F>(self, opener: F) -> Selfwhere
F: Fn(&EventStoreConfig, &RunManifest) -> Result<Box<dyn EventStore + Send>, EventStoreError> + Send + Sync + 'static,
pub fn with_backend_opener<F>(self, opener: F) -> Selfwhere
F: Fn(&EventStoreConfig, &RunManifest) -> Result<Box<dyn EventStore + Send>, EventStoreError> + Send + Sync + 'static,
Uses a caller-supplied backend opener for each opened run.
Sourcepub fn with_marker_registry_factory<F>(self, factory: F) -> Self
pub fn with_marker_registry_factory<F>(self, factory: F) -> Self
Uses a caller-supplied data-marker extractor registry factory for each opened run.
Trait Implementations§
Source§impl Clone for EventStoreLifecycleOptions
impl Clone for EventStoreLifecycleOptions
Source§fn clone(&self) -> EventStoreLifecycleOptions
fn clone(&self) -> EventStoreLifecycleOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventStoreLifecycleOptions
impl Debug for EventStoreLifecycleOptions
Auto Trait Implementations§
impl !RefUnwindSafe for EventStoreLifecycleOptions
impl !UnwindSafe for EventStoreLifecycleOptions
impl Freeze for EventStoreLifecycleOptions
impl Send for EventStoreLifecycleOptions
impl Sync for EventStoreLifecycleOptions
impl Unpin for EventStoreLifecycleOptions
impl UnsafeUnpin for EventStoreLifecycleOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more