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
impl<'a> !RefUnwindSafe for CreateFilterArgs<'a>
impl<'a> Send for CreateFilterArgs<'a>
impl<'a> Sync for CreateFilterArgs<'a>
impl<'a> Unpin for CreateFilterArgs<'a>
impl<'a> !UnwindSafe for CreateFilterArgs<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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