EnvironmentProvider

Trait EnvironmentProvider 

Source
pub trait EnvironmentProvider {
    type Host: HostProvider;
    type Workload: WorkloadProvider;
    type AutodiscoveryProvider: AutodiscoveryProvider;

    // Required methods
    fn host(&self) -> &Self::Host;
    fn workload(&self) -> &Self::Workload;
    fn autodiscovery(&self) -> &Self::AutodiscoveryProvider;
}
Expand description

Provides information about the environment in which the process is running.

Required Associated Types§

Source

type Host: HostProvider

Type of the host provider.

Source

type Workload: WorkloadProvider

Type of the workload provider.

Source

type AutodiscoveryProvider: AutodiscoveryProvider

Type of the autodiscovery provider.

Required Methods§

Source

fn host(&self) -> &Self::Host

Gets a reference to the host provider for this environment.

Source

fn workload(&self) -> &Self::Workload

Gets a reference to workload provider for this environment.

Source

fn autodiscovery(&self) -> &Self::AutodiscoveryProvider

Gets a reference to autodiscovery provider for this environment.

Implementations on Foreign Types§

Source§

impl<E> EnvironmentProvider for Arc<E>

Implementors§