pub fn filter_by_operation<Inner, F>(
    plugins: Inner,
    predicate: F
) -> FilterByOperation<Inner, F>
Expand description

Filters the application of an inner Plugin using a predicate over the ServiceShape::Operations.

Users should prefer Scoped and fallback to filter_by_operation in cases where Plugin application must be decided at runtime.

§Example

use aws_smithy_http_server::plugin::filter_by_operation;
// Prevents `plugin` from being applied to the `CheckHealth` operation.
let filtered_plugin = filter_by_operation(plugin, |name| name != Operation::CheckHealth);
let new_operation = filtered_plugin.apply(svc);