pub struct EventBusConfig {
pub worker_count: usize,
pub queue_capacity: usize,
pub default_timeout: Duration,
pub enable_persistence: bool,
pub enable_metrics: bool,
pub batch_size: usize,
pub max_retry_delay: Duration,
}
Expand description
Event bus configuration
Fields§
§worker_count: usize
Number of worker threads
queue_capacity: usize
Queue capacity
default_timeout: Duration
Default timeout for event processing
enable_persistence: bool
Whether to enable event persistence
enable_metrics: bool
Whether to enable metrics collection
batch_size: usize
Batch size for processing events
max_retry_delay: Duration
Maximum retry delay
Trait Implementations§
Source§impl Clone for EventBusConfig
impl Clone for EventBusConfig
Source§fn clone(&self) -> EventBusConfig
fn clone(&self) -> EventBusConfig
Returns a copy of the value. Read more
1.0.0 · 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 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.