pub struct EventSubscriberConfig {
pub batch_size: usize,
pub flush_interval_ms: Option<u64>,
}Expand description
Event Subscriber の共通設定
全ての Subscriber で共有される設定。 バッチ処理とフラッシュ間隔を制御する。
Fields§
§batch_size: usizeバッチサイズ(この数に達したら送信)
flush_interval_ms: Option<u64>フラッシュ間隔(None の場合は batch_size のみで判定)
Implementations§
Source§impl EventSubscriberConfig
impl EventSubscriberConfig
Sourcepub fn batch_size(self, size: usize) -> Self
pub fn batch_size(self, size: usize) -> Self
バッチサイズを設定
Sourcepub fn flush_interval_ms(self, ms: u64) -> Self
pub fn flush_interval_ms(self, ms: u64) -> Self
フラッシュ間隔を設定(ミリ秒)
Sourcepub fn no_flush_interval(self) -> Self
pub fn no_flush_interval(self) -> Self
フラッシュ間隔を無効化
Trait Implementations§
Source§impl Clone for EventSubscriberConfig
impl Clone for EventSubscriberConfig
Source§fn clone(&self) -> EventSubscriberConfig
fn clone(&self) -> EventSubscriberConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventSubscriberConfig
impl Debug for EventSubscriberConfig
Auto Trait Implementations§
impl Freeze for EventSubscriberConfig
impl RefUnwindSafe for EventSubscriberConfig
impl Send for EventSubscriberConfig
impl Sync for EventSubscriberConfig
impl Unpin for EventSubscriberConfig
impl UnwindSafe for EventSubscriberConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more