Trait Cli

Source
pub trait Cli: Shim + Sealed {
    // Required method
    fn run(config: impl Into<Option<Config>>);
}

Required Methods§

Source

fn run(config: impl Into<Option<Config>>)

Main entry point for the shim.

If the opentelemetry feature is enabled, this function will start the shim with OpenTelemetry tracing.

It parses OTLP configuration from the environment and initializes the OpenTelemetry SDK.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S: Shim> Cli for S