Skip to navigation

Struct Plugin Phase Name

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.

pub struct PluginPhaseName(/* private fields */);

A plugin lifecycle phase name, preserving values unknown to this reader. Typed conversion accepts only the corresponding catalogue enum.

Implementations

impl PluginPhaseName

impl PluginPhaseName

from_opaque_name

pub fn from_opaque_name(name: Cow<'static, str>) -> PluginPhaseName

Explicitly preserve a wire name; this does not authorize recording it.

as_str

pub fn as_str(&self) -> &str

Borrow the name without interpreting an unfamiliar value.

known

pub fn known(&self) -> Option<PluginPhase>

Recognize a supported value without discarding an unknown name.

into_name

pub fn into_name(self) -> Cow<'static, str>

Transfer the borrowed name or owned string without cloning.

Trait Implementations

impl Clone for PluginPhaseName

impl Clone for PluginPhaseName

clone

fn clone(&self) -> PluginPhaseName

clone_from

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

impl Debug for PluginPhaseName

impl Debug for PluginPhaseName

fmt

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

impl<'de> Deserialize<'de> for PluginPhaseName

impl<'de> Deserialize<'de> for PluginPhaseName

deserialize

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

impl From<PluginPhase> for PluginPhaseName

impl From<PluginPhase> for PluginPhaseName

from

fn from(value: PluginPhase) -> PluginPhaseName

impl Hash for PluginPhaseName

impl Hash for PluginPhaseName

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 PartialEq for PluginPhaseName

impl PartialEq for PluginPhaseName

eq

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

ne

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

impl Serialize for PluginPhaseName

impl Serialize for PluginPhaseName

serialize

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

impl Eq for PluginPhaseName

impl Eq for PluginPhaseName

impl StructuralPartialEq for PluginPhaseName

impl StructuralPartialEq for PluginPhaseName