Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct ComponentSpec {
pub enabled: bool,
pub config: AdaptiveConfig,
}

Referenced types: bool, AdaptiveConfig

One configured adaptive component.

Fields

enabled: bool

Whether the adaptive component should be activated.

config: AdaptiveConfig

Adaptive config for this top-level component.

Implementations

impl ComponentSpec

impl ComponentSpec

Referenced types: ComponentSpec

new

pub fn new(config: AdaptiveConfig) -> Self

Referenced types: AdaptiveConfig

Creates an enabled adaptive component spec.

Trait Implementations

impl Clone for ComponentSpec

impl Clone for ComponentSpec

Referenced types: Clone, ComponentSpec

clone

fn clone(&self) -> ComponentSpec

Referenced types: clone, ComponentSpec

clone_from

fn clone_from(&mut self, source: &Self)

Referenced types: clone_from

impl Debug for ComponentSpec

impl Debug for ComponentSpec

Referenced types: Debug, ComponentSpec

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Referenced types: fmt, Formatter, Result

impl From<ComponentSpec> for PluginComponentSpec

impl From<ComponentSpec> for PluginComponentSpec

Referenced types: From, ComponentSpec

from

fn from(value: ComponentSpec) -> Self

Referenced types: from, ComponentSpec