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.

#[non_exhaustive]pub enum PluginExecution {
NativeAbi,
WorkerProtocol,
}

Producer-authored plugin execution mechanism, excluded from counter identity.

Phase-one core activation recording leaves execution unset. These values support later native/worker producer integrations; they do not describe currently implemented automatic collection.

Variants (Non-exhaustive)

NativeAbi

NativeAbi

The plugin executes through the native ABI.

WorkerProtocol

WorkerProtocol

The plugin executes through the dynamic-worker protocol.

Implementations

impl PluginExecution

impl PluginExecution

Referenced types: PluginExecution

from_canonical_name

pub fn from_canonical_name(name: &str) -> Option<PluginExecution>

Referenced types: str, Option, PluginExecution

Interpret an exact supported canonical name without allocating.

as_str

pub const fn as_str(self) -> &'static str

Referenced types: str

Stable portable name, also available in const contexts.

Trait Implementations

impl Clone for PluginExecution

impl Clone for PluginExecution

Referenced types: Clone, PluginExecution

clone

fn clone(&self) -> PluginExecution

Referenced types: clone, PluginExecution

clone_from

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

Referenced types: clone_from

impl Debug for PluginExecution

impl Debug for PluginExecution

Referenced types: Debug, PluginExecution

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

impl<'de> Deserialize<'de> for PluginExecution

impl<'de> Deserialize<'de> for PluginExecution

Referenced types: Deserialize, PluginExecution

deserialize

fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginExecution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, PluginExecution, Deserializer, Error

impl<'_derivative_strum> From<&'_derivative_strum PluginExecution> for &'static str

impl<'_derivative_strum> From<&'_derivative_strum PluginExecution> for &'static str

Referenced types: From, PluginExecution, str

from

fn from(x: &'_derivative_strum PluginExecution) -> &'static str

Referenced types: from, PluginExecution, str

impl From<PluginExecution> for &'static str

impl From<PluginExecution> for &'static str

Referenced types: From, PluginExecution, str

from

fn from(x: PluginExecution) -> &'static str

Referenced types: from, PluginExecution, str

impl From<PluginExecution> for PluginExecutionName

impl From<PluginExecution> for PluginExecutionName

Referenced types: From, PluginExecution, PluginExecutionName

from

fn from(value: PluginExecution) -> PluginExecutionName

Referenced types: from, PluginExecution, PluginExecutionName

impl FromStr for PluginExecution

impl FromStr for PluginExecution

Referenced types: FromStr, PluginExecution

Err

type Err = ParseError

Referenced types: Err

from_str

fn from_str(
s: &str,
) -> Result<PluginExecution, <PluginExecution as FromStr>::Err>

Referenced types: from_str, str, Result, PluginExecution, FromStr, Err

impl Hash for PluginExecution

impl Hash for PluginExecution

Referenced types: Hash, PluginExecution

hash

fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,

Referenced types: hash, &mut __H, Hasher

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,

Referenced types: hash_slice, &mut H, Hasher, Sized

impl JsonSchema for PluginExecution

impl JsonSchema for PluginExecution

Referenced types: PluginExecution

schema_name

fn schema_name() -> String

Referenced types: String

schema_id

fn schema_id() -> Cow<'static, str>

Referenced types: Cow, str

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

is_referenceable

fn is_referenceable() -> bool

Referenced types: bool

impl Ord for PluginExecution

impl Ord for PluginExecution

Referenced types: Ord, PluginExecution

cmp

fn cmp(&self, other: &PluginExecution) -> Ordering

Referenced types: cmp, PluginExecution, Ordering

max

fn max(self, other: Self) -> Selfwhere
Self: Sized,

Referenced types: max, Sized

min

fn min(self, other: Self) -> Selfwhere
Self: Sized,

Referenced types: min, Sized

clamp

fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized,

Referenced types: clamp, Sized

impl PartialEq for PluginExecution

impl PartialEq for PluginExecution

Referenced types: PartialEq, PluginExecution

eq

fn eq(&self, other: &PluginExecution) -> bool

Referenced types: eq, PluginExecution, bool

ne

fn ne(&self, other: &Rhs) -> bool

Referenced types: ne, &Rhs, bool

impl PartialOrd for PluginExecution

impl PartialOrd for PluginExecution

Referenced types: PartialOrd, PluginExecution

partial_cmp

fn partial_cmp(&self, other: &PluginExecution) -> Option<Ordering>

Referenced types: partial_cmp, PluginExecution, Option, Ordering

lt

fn lt(&self, other: &Rhs) -> bool

Referenced types: lt, &Rhs, bool

le

fn le(&self, other: &Rhs) -> bool

Referenced types: le, &Rhs, bool

gt

fn gt(&self, other: &Rhs) -> bool

Referenced types: gt, &Rhs, bool

ge

fn ge(&self, other: &Rhs) -> bool

Referenced types: ge, &Rhs, bool

impl Serialize for PluginExecution

impl Serialize for PluginExecution

Referenced types: Serialize, PluginExecution

serialize

fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,

Referenced types: serialize, Result, Serializer, Ok, Error

impl TryFrom<&str> for PluginExecution

impl TryFrom<&str> for PluginExecution

Referenced types: TryFrom, str, PluginExecution

Error

type Error = ParseError

Referenced types: Error

try_from

fn try_from(
s: &str,
) -> Result<PluginExecution, <PluginExecution as TryFrom<&str>>::Error>

Referenced types: try_from, str, Result, PluginExecution, TryFrom, Error

impl Copy for PluginExecution

impl Copy for PluginExecution

Referenced types: Copy, PluginExecution

impl Eq for PluginExecution

impl Eq for PluginExecution

Referenced types: Eq, PluginExecution

impl StructuralPartialEq for PluginExecution

impl StructuralPartialEq for PluginExecution

Referenced types: StructuralPartialEq, PluginExecution