pub struct SamplerConfigBuilder { /* private fields */ }
Expand description
Use this struct in a builder pattern to load the Sampler, and optionally FIRE, configs.
Implementations§
Source§impl SamplerConfigBuilder
impl SamplerConfigBuilder
Sourcepub fn minimum_sample_rate_sec(self, minimum_sample_rate_sec: i64) -> Self
pub fn minimum_sample_rate_sec(self, minimum_sample_rate_sec: i64) -> Self
Optional. If not called, a default value will be used.
Sourcepub fn configure_reader_for_tests(
self,
configure_reader_for_tests: bool,
) -> Self
pub fn configure_reader_for_tests( self, configure_reader_for_tests: bool, ) -> Self
Optional. For use in tests only. Configures ArchiveReader (and thus ArchiveAccessor) to avoid test flakes.
Sourcepub fn sampler_dir(self, path: impl Into<PathBuf>) -> Self
pub fn sampler_dir(self, path: impl Into<PathBuf>) -> Self
Required. The builder will fail without a Sampler config dir. Calling multiple times will use only the last value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SamplerConfigBuilder
impl RefUnwindSafe for SamplerConfigBuilder
impl Send for SamplerConfigBuilder
impl Sync for SamplerConfigBuilder
impl Unpin for SamplerConfigBuilder
impl UnwindSafe for SamplerConfigBuilder
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