Struct quilkin::filters::CreateFilterArgs [−][src]
pub struct CreateFilterArgs {
pub config: Option<ConfigType>,
pub filter_registry: FilterRegistry,
pub metrics_registry: Registry,
}
Expand description
Arguments needed to create a new filter.
Fields
config: Option<ConfigType>
Configuration for the filter.
filter_registry: FilterRegistry
Used if the filter needs to reference or use other filters.
metrics_registry: Registry
metrics_registry is used to register filter metrics collectors.
Implementations
pub fn new(
filter_registry: FilterRegistry,
metrics_registry: Registry,
config: Option<ConfigType>
) -> CreateFilterArgs
pub fn new(
filter_registry: FilterRegistry,
metrics_registry: Registry,
config: Option<ConfigType>
) -> CreateFilterArgs
Create a new instance of CreateFilterArgs
.
pub fn fixed(
filter_registry: FilterRegistry,
metrics_registry: Registry,
config: Option<Value>
) -> CreateFilterArgs
pub fn fixed(
filter_registry: FilterRegistry,
metrics_registry: Registry,
config: Option<Value>
) -> CreateFilterArgs
Creates a new instance of CreateFilterArgs
using a
fixed ConfigType
.
pub fn dynamic(
filter_registry: FilterRegistry,
metrics_registry: Registry,
config: Option<Any>
) -> CreateFilterArgs
pub fn dynamic(
filter_registry: FilterRegistry,
metrics_registry: Registry,
config: Option<Any>
) -> CreateFilterArgs
Creates a new instance of CreateFilterArgs
using a
dynamic ConfigType
.
Auto Trait Implementations
impl !RefUnwindSafe for CreateFilterArgs
impl Send for CreateFilterArgs
impl Sync for CreateFilterArgs
impl Unpin for CreateFilterArgs
impl !UnwindSafe for CreateFilterArgs
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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