Skip to navigation

Enum Plugin Phase

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -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

from_canonical_name

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

Interpret an exact supported canonical name without allocating.

as_str

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

Stable portable name, also available in const contexts.

Trait Implementations

impl Clone for PluginPhase

impl Clone for PluginPhase

clone

fn clone(&self) -> PluginPhase

clone_from

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

impl Debug for PluginPhase

impl Debug for PluginPhase

fmt

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

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

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

deserialize

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

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

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

from

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

impl From<PluginPhase> for &'static str

impl From<PluginPhase> for &'static str

from

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

impl From<PluginPhase> for PluginPhaseName

impl From<PluginPhase> for PluginPhaseName

from

fn from(value: PluginPhase) -> PluginPhaseName

impl FromStr for PluginPhase

impl FromStr for PluginPhase

Err

type Err = ParseError

from_str

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

impl Hash for PluginPhase

impl Hash for PluginPhase

hash

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

hash_slice

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

impl Ord for PluginPhase

impl Ord for PluginPhase

cmp

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

max

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

min

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

clamp

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

impl PartialEq for PluginPhase

impl PartialEq for PluginPhase

eq

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

ne

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

impl PartialOrd for PluginPhase

impl PartialOrd for PluginPhase

partial_cmp

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

lt

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

le

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

gt

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

ge

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

impl Serialize for PluginPhase

impl Serialize for PluginPhase

serialize

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

impl TryFrom<&str> for PluginPhase

impl TryFrom<&str> for PluginPhase

Error

type Error = ParseError

try_from

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

impl Copy for PluginPhase

impl Copy for PluginPhase

impl Eq for PluginPhase

impl Eq for PluginPhase

impl StructuralPartialEq for PluginPhase

impl StructuralPartialEq for PluginPhase