pub struct EventBusConfig {
pub queue_capacity: usize,
pub handler_timeout: Duration,
pub enable_store: bool,
pub max_retries: u32,
pub retry_interval: Duration,
}Expand description
事件总线配置
Fields§
§queue_capacity: usize事件队列容量
handler_timeout: Duration处理器超时时间
enable_store: bool是否启用事件存储
max_retries: u32最大重试次数
retry_interval: Duration重试间隔
Trait Implementations§
Source§impl Clone for EventBusConfig
impl Clone for EventBusConfig
Source§fn clone(&self) -> EventBusConfig
fn clone(&self) -> EventBusConfig
Returns a duplicate 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 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