pub fn new(
        enable_dynamic_tracing: bool,
        enable_static_tracing: bool,
        force_dyn_stap: bool,
        force_dyn_noop: bool,
        force_static_stap: bool,
        force_static_lttng: bool,
        force_static_noop: bool,
    ) -> TracersResult<FeatureFlags> {
        if enable_dynamic_tracing && enable_static_tracing {
            return Err(TracersError::code_generation_error("The features `dynamic-tracing` and `static-tracing` are mutually exclusive; please choose one"));
        }

        if force_dyn_stap && force_dyn_noop {
            return Err(TracersError::code_generation_error("The features `force-dyn-stap` and `force_dyn_noop` are mutually exclusive; please choose one"));
        }

        if force_static_stap && force_static_noop {
            return Err(TracersError::code_generation_error("The features `force-static-stap` and `force_static_noop` are mutually exclusive; please choose one"));
        }

        if force_static_lttng && force_static_noop {
            return Err(TracersError::code_generation_error("The features `force-static-lttng` and `force_static_noop` are mutually exclusive; please choose one"));
        }

        Ok(FeatureFlags {
            enable_dynamic_tracing,
            enable_static_tracing,
            force_dyn_stap,
            force_dyn_noop,
            force_static_stap,
            force_static_lttng,
            force_static_noop,
        })
    }
/// Creates a feature flag structure from explicit arguments.  Mostly used for testing
Creates a feature flag structure from explicit arguments.  Mostly used for testing
Creates a feature flag structure from explicit arguments . Mostly used for testing
pub fn new(
        enable_dynamic_tracing: bool,
        enable_static_tracing: bool,
        force_dyn_stap: bool,
        force_dyn_noop: bool,
        force_static_stap: bool,
        force_static_lttng: bool,
        force_static_noop: bool,
    ) -> TracersResult<FeatureFlags> {
        if enable_dynamic_tracing && enable_static_tracing {
            return Err(TracersError::code_generation_error("The features `dynamic-tracing` and `static-tracing` are mutually exclusive; please choose one"));
        }
        if force_dyn_stap && force_dyn_noop {
            return Err(TracersError::code_generation_error("The features `force-dyn-stap` and `force_dyn_noop` are mutually exclusive; please choose one"));
        }
        if force_static_stap && force_static_noop {
            return Err(TracersError::code_generation_error("The features `force-static-stap` and `force_static_noop` are mutually exclusive; please choose one"));
        }
        if force_static_lttng && force_static_noop {
            return Err(TracersError::code_generation_error("The features `force-static-lttng` and `force_static_noop` are mutually exclusive; please choose one"));
        }
        Ok(FeatureFlags {
            enable_dynamic_tracing,
            enable_static_tracing,
            force_dyn_stap,
            force_dyn_noop,
            force_static_stap,
            force_static_lttng,
            force_static_noop,
        })
    }
pub fn new ( enable_dynamic_tracing : bool , enable_static_tracing : bool , force_dyn_stap : bool , force_dyn_noop : bool , force_static_stap : bool , force_static_lttng : bool , force_static_noop : bool , ) -> TracersResult < FeatureFlags > { if enable_dynamic_tracing && enable_static_tracing { return Err ( TracersError :: code_generation_error ( " " ) ) ; } if force_dyn_stap && force_dyn_noop { return Err ( TracersError :: code_generation_error ( " " ) ) ; } if force_static_stap && force_static_noop { return Err ( TracersError :: code_generation_error ( " " ) ) ; } if force_static_lttng && force_static_noop { return Err ( TracersError :: code_generation_error ( " " ) ) ; } Ok ( FeatureFlags { enable_dynamic_tracing , enable_static_tracing , force_dyn_stap , force_dyn_noop , force_static_stap , force_static_lttng , force_static_noop , } ) }
Creates a feature flag structure from explicit arguments.
Creates a feature flag structure from explicit arguments .
enable_dynamic_tracing
bool
enable_static_tracing
bool
force_dyn_stap
bool
force_dyn_noop
bool
force_static_stap
bool
force_static_lttng
bool
force_static_noop
bool
enable_dynamic_tracing
bool
enable_static_tracing
bool
force_dyn_stap
bool
force_dyn_noop
bool
force_static_stap
bool
force_static_lttng
bool
force_static_noop
bool