pub struct SamplerConfig {
pub project_configs: Vec<Arc<ProjectConfig>>,
pub configure_reader_for_tests: bool,
pub minimum_sample_rate_sec: i64,
/* private fields */
}
Expand description
Container for all configurations needed to instantiate the Sampler infrastructure. Includes: - Project configurations. - Whether to configure the ArchiveReader for tests (e.g. longer timeouts) - Minimum sample rate.
Fields§
§project_configs: Vec<Arc<ProjectConfig>>
§configure_reader_for_tests: bool
§minimum_sample_rate_sec: i64
Implementations§
Source§impl SamplerConfig
impl SamplerConfig
Sourcepub fn publish_inspect(self: &Arc<Self>, parent_node: &Node)
pub fn publish_inspect(self: &Arc<Self>, parent_node: &Node)
Publish data about this config to Inspect under the given node.
Takes an Arc so that a weak reference can be used to populate an Inspector on demand.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SamplerConfig
impl RefUnwindSafe for SamplerConfig
impl Send for SamplerConfig
impl Sync for SamplerConfig
impl Unpin for SamplerConfig
impl UnwindSafe for SamplerConfig
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