Skip to navigation

Struct Plugin Execution 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 PluginExecutionName(/* private fields */);

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

Implementations

impl PluginExecutionName

impl PluginExecutionName

from_opaque_name

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

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<PluginExecution>

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 PluginExecutionName

impl Clone for PluginExecutionName

clone

fn clone(&self) -> PluginExecutionName

clone_from

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

impl Debug for PluginExecutionName

impl Debug for PluginExecutionName

fmt

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

impl<'de> Deserialize<'de> for PluginExecutionName

impl<'de> Deserialize<'de> for PluginExecutionName

deserialize

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

impl From<PluginExecution> for PluginExecutionName

impl From<PluginExecution> for PluginExecutionName

from

fn from(value: PluginExecution) -> PluginExecutionName

impl Hash for PluginExecutionName

impl Hash for PluginExecutionName

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 PluginExecutionName

impl PartialEq for PluginExecutionName

eq

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

ne

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

impl Serialize for PluginExecutionName

impl Serialize for PluginExecutionName

serialize

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

impl Eq for PluginExecutionName

impl Eq for PluginExecutionName

impl StructuralPartialEq for PluginExecutionName

impl StructuralPartialEq for PluginExecutionName