pub struct EventsConfigBuilder { /* private fields */ }Expand description
Builder for EventsConfig.
Implementations§
Source§impl EventsConfigBuilder
impl EventsConfigBuilder
Sourcepub fn sampling(self, s: SamplingConfig) -> Self
pub fn sampling(self, s: SamplingConfig) -> Self
Replace the sampling config.
Sourcepub fn limits(self, l: LimitsConfig) -> Self
pub fn limits(self, l: LimitsConfig) -> Self
Replace the limits config.
Sourcepub fn queues(self, q: QueuesConfig) -> Self
pub fn queues(self, q: QueuesConfig) -> Self
Replace the queues config.
Sourcepub fn audit(self, a: AuditConfig) -> Self
pub fn audit(self, a: AuditConfig) -> Self
Replace the AUDIT-tier config.
Sourcepub fn sinks(self, s: SinksConfig) -> Self
pub fn sinks(self, s: SinksConfig) -> Self
Replace the per-sink config.
Sourcepub fn service(self, s: ServiceConfig) -> Self
pub fn service(self, s: ServiceConfig) -> Self
Replace the service config.
Sourcepub fn build(self) -> EventsConfig
pub fn build(self) -> EventsConfig
Finalize. Does not validate — call EventsConfig::validate()
before installing.
Trait Implementations§
Source§impl Debug for EventsConfigBuilder
impl Debug for EventsConfigBuilder
Source§impl Default for EventsConfigBuilder
impl Default for EventsConfigBuilder
Source§fn default() -> EventsConfigBuilder
fn default() -> EventsConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventsConfigBuilder
impl RefUnwindSafe for EventsConfigBuilder
impl Send for EventsConfigBuilder
impl Sync for EventsConfigBuilder
impl Unpin for EventsConfigBuilder
impl UnsafeUnpin for EventsConfigBuilder
impl UnwindSafe for EventsConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more