Skip to main content

Module stack

Module stack 

Source
Expand description

Middleware stack builder for composing handler pipelines. Middleware stack builder for composing consumer handler pipelines.

StackBuilder provides a fluent API to configure middleware and build a fully-wrapped handler in a standard order.

§Example

use rskit_messaging::middleware::StackBuilder;

let handler = StackBuilder::<Vec<u8>>::new(base_handler)
    .with_retry(retry_config)
    .with_metrics(metrics, "my-topic")
    .build();

Structs§

StackBuilder
Fluent builder for composing messaging middleware into a handler pipeline.