pub struct AggregateBuilder { /* private fields */ }Expand description
A builder for constructing an AggregateSampler in a fluent manner.
Implementations§
Source§impl AggregateBuilder
impl AggregateBuilder
Sourcepub fn from_sampler(sampler: impl DurationSampler + 'static) -> Self
pub fn from_sampler(sampler: impl DurationSampler + 'static) -> Self
Initializes the builder with the first sampler.
Sourcepub fn add_sampler(self, sampler: Box<dyn DurationSampler>) -> Self
pub fn add_sampler(self, sampler: Box<dyn DurationSampler>) -> Self
Adds another sampler to the aggregation list.
Auto Trait Implementations§
impl Freeze for AggregateBuilder
impl !RefUnwindSafe for AggregateBuilder
impl !Send for AggregateBuilder
impl !Sync for AggregateBuilder
impl Unpin for AggregateBuilder
impl UnsafeUnpin for AggregateBuilder
impl !UnwindSafe for AggregateBuilder
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> 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