pub struct LoopBuilder { /* private fields */ }Expand description
Builder for the sub-pipeline within a .loop_count() / .loop_while() … .end_loop() block.
Implementations§
Source§impl LoopBuilder
impl LoopBuilder
pub fn loop_count(self, count: usize) -> LoopInLoopBuilder
pub fn loop_while<F>(self, predicate: F) -> LoopInLoopBuilder
pub fn end_loop(self) -> RouteBuilder
Trait Implementations§
Source§impl StepAccumulator for LoopBuilder
impl StepAccumulator for LoopBuilder
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
fn delay(self, duration: Duration) -> Self
fn delay_with_header( self, duration: Duration, header: impl Into<String>, ) -> Self
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
fn stream_cache(self, threshold: usize) -> Self
Source§fn stream_cache_default(self) -> Self
fn stream_cache_default(self) -> Self
Source§fn marshal(self, format: impl Into<String>) -> Self
fn marshal(self, format: impl Into<String>) -> Self
Marshal the message body using the specified data format. Read more
Source§fn unmarshal(self, format: impl Into<String>) -> Self
fn unmarshal(self, format: impl Into<String>) -> Self
Unmarshal the message body using the specified data format. Read more
Auto Trait Implementations§
impl Freeze for LoopBuilder
impl !RefUnwindSafe for LoopBuilder
impl Send for LoopBuilder
impl !Sync for LoopBuilder
impl Unpin for LoopBuilder
impl UnsafeUnpin for LoopBuilder
impl !UnwindSafe for LoopBuilder
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