Struct Component Spec

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct ComponentSpec {
    pub enabled: bool,
    pub config: 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

new

pub fn new(config: AdaptiveConfig) -> Self

Creates an enabled adaptive component spec.

Trait Implementations

impl Clone for ComponentSpec

impl Clone for ComponentSpec

clone

fn clone(&self) -> ComponentSpec

clone_from

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

impl Debug for ComponentSpec

impl Debug for ComponentSpec

fmt

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

impl From<ComponentSpec> for PluginComponentSpec

impl From<ComponentSpec> for PluginComponentSpec

from

fn from(value: ComponentSpec) -> Self