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 PluginPhase {
Validation,
Activation,
Runtime,
Policy,
Shutdown,
}

Observed plugin lifecycle phase or policy-gate context, independent of classification.

The phase-one core adapter automatically supplies only Self::Activation. Other values are authoring/wire contracts for producers integrated later; declaring a value does not mean its stage is currently observed by Relay.

Variants (Non-exhaustive)

Validation

Validation

Validation lifecycle phase.

Activation

Activation

Activation lifecycle phase.

Runtime

Runtime

Runtime lifecycle phase.

Policy

Policy

Host policy evaluation that permits or blocks plugin realization.

Shutdown

Shutdown

Plugin cleanup and confirmed process termination.

Implementations

impl PluginPhase

impl PluginPhase

Referenced types: PluginPhase

from_canonical_name

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

Referenced types: str, Option, PluginPhase

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 PluginPhase

impl Clone for PluginPhase

Referenced types: Clone, PluginPhase

clone

fn clone(&self) -> PluginPhase

Referenced types: clone, PluginPhase

clone_from

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

Referenced types: clone_from

impl Debug for PluginPhase

impl Debug for PluginPhase

Referenced types: Debug, PluginPhase

fmt

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

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

impl<'de> Deserialize<'de> for PluginPhase

impl<'de> Deserialize<'de> for PluginPhase

Referenced types: Deserialize, PluginPhase

deserialize

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

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

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

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

Referenced types: From, PluginPhase, str

from

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

Referenced types: from, PluginPhase, str

impl From<PluginPhase> for &'static str

impl From<PluginPhase> for &'static str

Referenced types: From, PluginPhase, str

from

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

Referenced types: from, PluginPhase, str

impl From<PluginPhase> for PluginPhaseName

impl From<PluginPhase> for PluginPhaseName

Referenced types: From, PluginPhase, PluginPhaseName

from

fn from(value: PluginPhase) -> PluginPhaseName

Referenced types: from, PluginPhase, PluginPhaseName

impl FromStr for PluginPhase

impl FromStr for PluginPhase

Referenced types: FromStr, PluginPhase

Err

type Err = ParseError

Referenced types: Err

from_str

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

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

impl Hash for PluginPhase

impl Hash for PluginPhase

Referenced types: Hash, PluginPhase

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 PluginPhase

impl JsonSchema for PluginPhase

Referenced types: PluginPhase

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 PluginPhase

impl Ord for PluginPhase

Referenced types: Ord, PluginPhase

cmp

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

Referenced types: cmp, PluginPhase, 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 PluginPhase

impl PartialEq for PluginPhase

Referenced types: PartialEq, PluginPhase

eq

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

Referenced types: eq, PluginPhase, bool

ne

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

Referenced types: ne, &Rhs, bool

impl PartialOrd for PluginPhase

impl PartialOrd for PluginPhase

Referenced types: PartialOrd, PluginPhase

partial_cmp

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

Referenced types: partial_cmp, PluginPhase, 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 PluginPhase

impl Serialize for PluginPhase

Referenced types: Serialize, PluginPhase

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 PluginPhase

impl TryFrom<&str> for PluginPhase

Referenced types: TryFrom, str, PluginPhase

Error

type Error = ParseError

Referenced types: Error

try_from

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

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

impl Copy for PluginPhase

impl Copy for PluginPhase

Referenced types: Copy, PluginPhase

impl Eq for PluginPhase

impl Eq for PluginPhase

Referenced types: Eq, PluginPhase

impl StructuralPartialEq for PluginPhase

impl StructuralPartialEq for PluginPhase

Referenced types: StructuralPartialEq, PluginPhase