pub struct DirectConfig {
pub name: String,
pub timeout_ms: Option<u64>,
pub block: Option<bool>,
pub fail_if_no_consumers: Option<bool>,
pub bridge_error_handler: Option<bool>,
pub exchange_pattern: Option<String>,
}Expand description
Configuration for Direct endpoints parsed from URIs.
URI format: direct:name[?timeout_ms=30000]
Example: direct:foo creates an endpoint named “foo”
Fields§
§name: StringEndpoint name (path portion).
timeout_ms: Option<u64>Timeout in milliseconds for producer call(). Defaults to 30 000 ms.
block: Option<bool>When false, the producer returns immediately if no consumer is registered. TODO(DIR-001): implement non-blocking send
fail_if_no_consumers: Option<bool>When false, skip readiness error if no consumer registered.
bridge_error_handler: Option<bool>TODO(DIR-005): implement bridgeErrorHandler routing
exchange_pattern: Option<String>TODO(DIR-005): implement exchangePattern override
Implementations§
Source§impl DirectConfig
impl DirectConfig
pub fn from_uri(uri: &str) -> Result<Self, CamelError>
Trait Implementations§
Source§impl Clone for DirectConfig
impl Clone for DirectConfig
Source§fn clone(&self) -> DirectConfig
fn clone(&self) -> DirectConfig
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 DirectConfig
impl RefUnwindSafe for DirectConfig
impl Send for DirectConfig
impl Sync for DirectConfig
impl Unpin for DirectConfig
impl UnsafeUnpin for DirectConfig
impl UnwindSafe for DirectConfig
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