Enum Resource Association
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.
Canonical resource association values from the shared runtime types.
Variants
Unspecified = 0
Unspecified = 0
No value supplied; invalid where an explicit value is required.
HostProcess = 1
HostProcess = 1
Verified host application process.
HostProcessTree = 2
HostProcessTree = 2
Verified host root plus sampled descendants.
OtherProcessTree = 3
OtherProcessTree = 3
Verified different root and descendants; may exclude Relay.
System = 4
System = 4
System context only.
Unverified = 5
Unverified = 5
No verified root relationship.
Implementations
impl ResourceAssociation
impl ResourceAssociation
is_valid
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ResourceAssociation.
from_i32
pub fn from_i32(value: i32) -> Option<ResourceAssociation>
Converts an i32 to a ResourceAssociation, or None if value is not a valid variant.
impl ResourceAssociation
impl ResourceAssociation
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 ResourceAssociation
impl Clone for ResourceAssociation
clone
fn clone(&self) -> ResourceAssociation
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ResourceAssociation
impl Debug for ResourceAssociation
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ResourceAssociation
impl Default for ResourceAssociation
default
fn default() -> ResourceAssociation
impl From<ResourceAssociation> for i32
impl From<ResourceAssociation> for i32
from
fn from(value: ResourceAssociation) -> i32
impl Hash for ResourceAssociation
impl Hash for ResourceAssociation
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 ResourceAssociation
impl Ord for ResourceAssociation
cmp
fn cmp(&self, other: &ResourceAssociation) -> 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 ResourceAssociation
impl PartialEq for ResourceAssociation
eq
fn eq(&self, other: &ResourceAssociation) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl PartialOrd for ResourceAssociation
impl PartialOrd for ResourceAssociation
partial_cmp
fn partial_cmp(&self, other: &ResourceAssociation) -> 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 ResourceAssociation
impl TryFrom<i32> for ResourceAssociation
Error
type Error = UnknownEnumValue
try_from
fn try_from(value: i32) -> Result<ResourceAssociation, UnknownEnumValue>
impl Copy for ResourceAssociation
impl Copy for ResourceAssociation
impl Eq for ResourceAssociation
impl Eq for ResourceAssociation
impl StructuralPartialEq for ResourceAssociation
impl StructuralPartialEq for ResourceAssociation