pub struct EventBusConfig {
pub buffer_size: usize,
pub persist_events: bool,
pub retention_seconds: u64,
pub max_history_size: usize,
}Expand description
Configuration for the event bus
Fields§
§buffer_size: usizeMaximum number of events to buffer in the broadcast channel
persist_events: boolEnable event persistence for replay
retention_seconds: u64Event retention period in seconds (for persistence)
max_history_size: usizeMaximum events to keep in history
Implementations§
Source§impl EventBusConfig
impl EventBusConfig
Sourcepub fn with_persistence() -> Self
pub fn with_persistence() -> Self
Create config with persistence enabled
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Set buffer size
Sourcepub fn retention_seconds(self, seconds: u64) -> Self
pub fn retention_seconds(self, seconds: u64) -> Self
Set retention period
Trait Implementations§
Source§impl Clone for EventBusConfig
impl Clone for EventBusConfig
Source§impl Debug for EventBusConfig
impl Debug for EventBusConfig
Auto Trait Implementations§
impl Freeze for EventBusConfig
impl RefUnwindSafe for EventBusConfig
impl Send for EventBusConfig
impl Sync for EventBusConfig
impl Unpin for EventBusConfig
impl UnsafeUnpin for EventBusConfig
impl UnwindSafe for EventBusConfig
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