pub struct MulticastBuilder { /* private fields */ }Expand description
Builder for the sub-pipeline within a .multicast() … .end_multicast() block.
Exposes the same step methods as RouteBuilder (to, process, filter, etc.)
but NOT .build() and NOT .multicast() (no nested multicasts).
Calling .end_multicast() packages the sub-steps into a BuilderStep::Multicast
and returns the parent RouteBuilder.
Implementations§
Source§impl MulticastBuilder
impl MulticastBuilder
pub fn parallel(self, parallel: bool) -> Self
pub fn parallel_limit(self, limit: usize) -> Self
pub fn stop_on_exception(self, stop: bool) -> Self
pub fn timeout(self, duration: Duration) -> Self
pub fn aggregation(self, strategy: MulticastStrategy) -> Self
pub fn end_multicast(self) -> RouteBuilder
Trait Implementations§
Source§impl StepAccumulator for MulticastBuilder
impl StepAccumulator for MulticastBuilder
fn steps_mut(&mut self) -> &mut Vec<BuilderStep>
fn to(self, endpoint: impl Into<String>) -> Self
fn process<F, Fut>(self, f: F) -> Self
fn process_fn(self, processor: BoxProcessor) -> Self
fn set_header(self, key: impl Into<String>, value: impl Into<Value>) -> Self
fn map_body<F>(self, mapper: F) -> Self
fn set_body<B>(self, body: B) -> Self
fn set_body_fn<F>(self, expr: F) -> Self
fn set_header_fn<F>(self, key: impl Into<String>, expr: F) -> Self
fn aggregate(self, config: AggregatorConfig) -> Self
Source§fn stop(self) -> Self
fn stop(self) -> Self
Stop processing this exchange immediately. No further steps in the
current pipeline will run. Read more
Source§fn log(self, message: impl Into<String>, level: LogLevel) -> Self
fn log(self, message: impl Into<String>, level: LogLevel) -> Self
Log a message at the specified level. Read more
Source§fn convert_body_to(self, target: BodyType) -> Self
fn convert_body_to(self, target: BodyType) -> Self
Convert the message body to the target type. Read more
Auto Trait Implementations§
impl Freeze for MulticastBuilder
impl !RefUnwindSafe for MulticastBuilder
impl Send for MulticastBuilder
impl !Sync for MulticastBuilder
impl Unpin for MulticastBuilder
impl UnsafeUnpin for MulticastBuilder
impl !UnwindSafe for MulticastBuilder
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