pub struct StartSamplingBuilder { /* private fields */ }Expand description
Builder for StartSampling.
Implementations§
Source§impl StartSamplingBuilder
impl StartSamplingBuilder
Sourcepub fn sampling_interval<VALUE: Into<JsUInt>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn sampling_interval<VALUE: Into<JsUInt>>( &mut self, value: VALUE, ) -> &mut Self
Average number of bytes between samples.
Sourcepub fn suppress_randomness<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn suppress_randomness<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Do not randomize intervals between samples.
Sourcepub fn build(&self) -> Result<StartSampling, StartSamplingBuilderError>
pub fn build(&self) -> Result<StartSampling, StartSamplingBuilderError>
Trait Implementations§
Source§impl Clone for StartSamplingBuilder
impl Clone for StartSamplingBuilder
Source§fn clone(&self) -> StartSamplingBuilder
fn clone(&self) -> StartSamplingBuilder
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 moreAuto Trait Implementations§
impl Freeze for StartSamplingBuilder
impl RefUnwindSafe for StartSamplingBuilder
impl Send for StartSamplingBuilder
impl Sync for StartSamplingBuilder
impl Unpin for StartSamplingBuilder
impl UnsafeUnpin for StartSamplingBuilder
impl UnwindSafe for StartSamplingBuilder
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