Skip to main content

Module config

Module config 

Available on crate feature dial9 only.
Expand description

Original positional-argument config API for the #[dial9_tokio_telemetry::main] macro. The fluent builder re-exported at the crate root (see Dial9Config::builder) is a more ergonomic alternative. We encourage you to switch to Dial9Config::builder. Positional-argument config API for the #[dial9_tokio_telemetry::main] macro.

The fluent builder re-exported at the crate root (see crate::Dial9Config::builder) is a more ergonomic alternative and tends to read more clearly when there are several knobs to set.

Equivalent calls on the fluent builder, we encourage you to migrate to:

  • Dial9ConfigBuilder::new(..)Dial9Config::builder().base_path(..).max_file_size(..).max_total_size(..).
  • Dial9ConfigBuilder::disabled()Dial9Config::builder().enabled(false).
  • .with_tokio() / .with_runtime() are unchanged.

Structs§

Dial9Config
Finalized configuration consumed by the #[main] macro.
Dial9ConfigBuilder
Builder for a Dial9Config with telemetry enabled.
DisabledDial9ConfigBuilder
Builder for a Dial9Config with telemetry disabled.