Enum Runtime Registration Owner Kind

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.

1#[repr(i32)]pub enum RuntimeRegistrationOwnerKind {
2 Unspecified = 0,
3 Core = 1,
4 GlobalApi = 2,
5 Plugin = 3,
6}

Variants

Unspecified = 0

Unspecified = 0

Core = 1

Core = 1

GlobalApi = 2

GlobalApi = 2

Plugin = 3

Plugin = 3

Implementations

impl RuntimeRegistrationOwnerKind

impl RuntimeRegistrationOwnerKind

is_valid

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of RuntimeRegistrationOwnerKind.

from_i32

pub fn from_i32(value: i32) -> Option<RuntimeRegistrationOwnerKind>

Converts an i32 to a RuntimeRegistrationOwnerKind, or None if value is not a valid variant.

impl RuntimeRegistrationOwnerKind

impl RuntimeRegistrationOwnerKind

as_str_name

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

from_str_name

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations

impl Clone for RuntimeRegistrationOwnerKind

impl Clone for RuntimeRegistrationOwnerKind

clone

fn clone(&self) -> RuntimeRegistrationOwnerKind

clone_from

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

impl Debug for RuntimeRegistrationOwnerKind

impl Debug for RuntimeRegistrationOwnerKind

fmt

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

impl Default for RuntimeRegistrationOwnerKind

impl Default for RuntimeRegistrationOwnerKind

default

fn default() -> RuntimeRegistrationOwnerKind

impl From<RuntimeRegistrationOwnerKind> for i32

impl From<RuntimeRegistrationOwnerKind> for i32

from

fn from(value: RuntimeRegistrationOwnerKind) -> i32

impl Hash for RuntimeRegistrationOwnerKind

impl Hash for RuntimeRegistrationOwnerKind

hash

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

hash_slice

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

impl Ord for RuntimeRegistrationOwnerKind

impl Ord for RuntimeRegistrationOwnerKind

cmp

fn cmp(&self, other: &RuntimeRegistrationOwnerKind) -> 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 RuntimeRegistrationOwnerKind

impl PartialEq for RuntimeRegistrationOwnerKind

eq

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

ne

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

impl PartialOrd for RuntimeRegistrationOwnerKind

impl PartialOrd for RuntimeRegistrationOwnerKind

partial_cmp

fn partial_cmp(&self, other: &RuntimeRegistrationOwnerKind) -> 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 TryFrom<i32> for RuntimeRegistrationOwnerKind

impl TryFrom<i32> for RuntimeRegistrationOwnerKind

Error

type Error = UnknownEnumValue

try_from

fn try_from(
    value: i32,
) -> Result<RuntimeRegistrationOwnerKind, UnknownEnumValue>

impl Copy for RuntimeRegistrationOwnerKind

impl Copy for RuntimeRegistrationOwnerKind

impl Eq for RuntimeRegistrationOwnerKind

impl Eq for RuntimeRegistrationOwnerKind

impl StructuralPartialEq for RuntimeRegistrationOwnerKind

impl StructuralPartialEq for RuntimeRegistrationOwnerKind