pub struct SedaConfig {
pub name: String,
pub size: usize,
pub concurrent_consumers: usize,
pub multiple_consumers: bool,
pub block_when_full: bool,
pub discard_if_no_consumers: bool,
pub timeout_ms: u64,
pub wait_for_task_to_complete: WaitForTaskToComplete,
pub exchange_pattern: ExchangePattern,
}Expand description
Configuration parsed from a SEDA URI.
URI format: seda:name[?options]
Options are split into two groups:
- shared: validated for consistency when multiple endpoints reference
the same endpoint name (
size,multiple_consumers,exchange_pattern,concurrent_consumers). - producer only: stored per-endpoint, used only by the producer
(
block_when_full,discard_if_no_consumers,timeout_ms,wait_for_task_to_complete).
Fields§
§name: String§size: usize§concurrent_consumers: usize§multiple_consumers: bool§block_when_full: bool§discard_if_no_consumers: bool§timeout_ms: u64§wait_for_task_to_complete: WaitForTaskToComplete§exchange_pattern: ExchangePatternImplementations§
Source§impl SedaConfig
impl SedaConfig
pub fn from_uri(uri: &str) -> Result<Self, CamelError>
Trait Implementations§
Source§impl Clone for SedaConfig
impl Clone for SedaConfig
Source§fn clone(&self) -> SedaConfig
fn clone(&self) -> SedaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SedaConfig
impl RefUnwindSafe for SedaConfig
impl Send for SedaConfig
impl Sync for SedaConfig
impl Unpin for SedaConfig
impl UnsafeUnpin for SedaConfig
impl UnwindSafe for SedaConfig
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