pub struct WeakJoinMiddleware {
pub group_by: String,
pub expected_count: usize,
pub timeout_ms: u64,
pub branch_by: Option<String>,
pub required: Vec<String>,
pub on_timeout: WeakJoinTimeout,
}Expand description
Weak Join middleware configuration.
Correlates messages by a metadata key and joins them within a timeout window.
Count mode (default) waits for expected_count messages and emits a JSON array.
Branch mode (set branch_by) waits for named branches and emits a branch-keyed object.
Fields§
§group_by: StringThe metadata key to group messages by (e.g., “correlation_id”).
expected_count: usizeThe number of messages (count mode) or distinct branches (branch mode) to wait for.
timeout_ms: u64Timeout in milliseconds.
branch_by: Option<String>Metadata key naming each message’s branch; enables branch mode when set.
required: Vec<String>Branch names that must all arrive before firing (branch mode; overrides expected_count).
on_timeout: WeakJoinTimeoutWhat to do with an incomplete group when the timeout expires.
Trait Implementations§
Source§impl Clone for WeakJoinMiddleware
impl Clone for WeakJoinMiddleware
Source§fn clone(&self) -> WeakJoinMiddleware
fn clone(&self) -> WeakJoinMiddleware
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 moreSource§impl Debug for WeakJoinMiddleware
impl Debug for WeakJoinMiddleware
Source§impl<'de> Deserialize<'de> for WeakJoinMiddleware
impl<'de> Deserialize<'de> for WeakJoinMiddleware
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WeakJoinMiddleware
impl RefUnwindSafe for WeakJoinMiddleware
impl Send for WeakJoinMiddleware
impl Sync for WeakJoinMiddleware
impl Unpin for WeakJoinMiddleware
impl UnsafeUnpin for WeakJoinMiddleware
impl UnwindSafe for WeakJoinMiddleware
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