Struct quilkin::filters::prelude::CreateFilterArgs[][src]

pub struct CreateFilterArgs<'a> {
    pub config: Option<ConfigType<'a>>,
    pub metrics_registry: Registry,
}
Expand description

Arguments needed to create a new filter.

Fields

config: Option<ConfigType<'a>>

Configuration for the filter.

metrics_registry: Registry

metrics_registry is used to register filter metrics collectors.

Implementations

Creates a new instance of CreateFilterArgs using a fixed ConfigType.

Creates a new instance of CreateFilterArgs using a dynamic ConfigType.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more