pub struct EventStoreConfig {
pub base_dir: PathBuf,
pub identity: RunIdentity,
pub retention: RetentionMode,
pub replay_from_run_id: Option<String>,
pub data_markers: Option<DataMarkerConfig>,
pub channel_capacity: usize,
pub max_batch_entries: usize,
pub max_batch_latency: Duration,
pub halt_threshold: Duration,
pub run_started_timeout: Duration,
}Expand description
Configuration for the kernel-managed event store run lifecycle.
Fields§
§base_dir: PathBufRoot directory; the backend creates <base_dir>/<instance_id>/<run_id>.redb.
identity: RunIdentityStable identification for this trader instance and binary.
retention: RetentionModeHow the supervisor reclaims sealed run files.
replay_from_run_id: Option<String>Sealed run to restore cache state from before opening a fresh run.
When set, this enables event-store replay: the kernel restores cache state from this run, records it as the parent link for the fresh child run, and then skips engines, clients, trader startup, and live reconciliation. Quarantined runs are rejected.
data_markers: Option<DataMarkerConfig>Data-marker sidecar settings. None disables marker capture for the run.
channel_capacity: usizeCapacity of the writer’s bounded submit channel.
max_batch_entries: usizeMaximum entries collected before the writer forces a commit.
max_batch_latency: DurationMaximum time a batch may accumulate before the writer forces a commit.
halt_threshold: DurationSubmit-side stall ceiling that triggers writer fail-stop.
run_started_timeout: DurationMaximum time to wait for the RunStarted entry to durably commit before the
kernel surfaces an event-store boot error.
Trait Implementations§
Source§impl Clone for EventStoreConfig
impl Clone for EventStoreConfig
Source§fn clone(&self) -> EventStoreConfig
fn clone(&self) -> EventStoreConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventStoreConfig
impl Debug for EventStoreConfig
Source§impl Default for EventStoreConfig
impl Default for EventStoreConfig
Source§fn default() -> EventStoreConfig
fn default() -> EventStoreConfig
Source§impl<'de> Deserialize<'de> for EventStoreConfig
impl<'de> Deserialize<'de> for EventStoreConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventStoreConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventStoreConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for EventStoreConfig
impl Serialize for EventStoreConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for EventStoreConfig
impl RefUnwindSafe for EventStoreConfig
impl Send for EventStoreConfig
impl Sync for EventStoreConfig
impl Unpin for EventStoreConfig
impl UnsafeUnpin for EventStoreConfig
impl UnwindSafe for EventStoreConfig
Blanket Implementations§
impl<T> Allocation for T
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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