pub struct DispatcherConfig {
pub receive_timeout: Duration,
pub broadcast_capacity: usize,
pub send_buffer_capacity: usize,
pub processor_error_policy: ProcessorErrorPolicy,
}Expand description
Message dispatcher configuration
Fields§
§receive_timeout: DurationReceive timeout
broadcast_capacity: usizeMessage broadcast channel capacity
send_buffer_capacity: usizeOutgoing send buffer capacity used by the dispatcher internal queue
processor_error_policy: ProcessorErrorPolicyPolicy for handling processor errors
Implementations§
Source§impl DispatcherConfig
impl DispatcherConfig
Sourcepub const fn with_receive_timeout(self, timeout: Duration) -> Self
pub const fn with_receive_timeout(self, timeout: Duration) -> Self
Set receive timeout
Sourcepub const fn with_broadcast_capacity(self, capacity: usize) -> Self
pub const fn with_broadcast_capacity(self, capacity: usize) -> Self
Set broadcast channel capacity
Sourcepub const fn with_send_buffer_capacity(self, capacity: usize) -> Self
pub const fn with_send_buffer_capacity(self, capacity: usize) -> Self
Set send buffer capacity for dispatcher’s internal queue
Sourcepub const fn with_processor_error_policy(
self,
policy: ProcessorErrorPolicy,
) -> Self
pub const fn with_processor_error_policy( self, policy: ProcessorErrorPolicy, ) -> Self
Set processor error handling policy
Trait Implementations§
Source§impl Clone for DispatcherConfig
impl Clone for DispatcherConfig
Source§fn clone(&self) -> DispatcherConfig
fn clone(&self) -> DispatcherConfig
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 DispatcherConfig
impl Debug for DispatcherConfig
Source§impl Default for DispatcherConfig
impl Default for DispatcherConfig
Source§impl From<&ClientConfig> for DispatcherConfig
impl From<&ClientConfig> for DispatcherConfig
Source§fn from(config: &ClientConfig) -> Self
fn from(config: &ClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DispatcherConfig
impl RefUnwindSafe for DispatcherConfig
impl Send for DispatcherConfig
impl Sync for DispatcherConfig
impl Unpin for DispatcherConfig
impl UnwindSafe for DispatcherConfig
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