#[repr(i32)]pub enum ProbeErrorCode {
ProbeErrorUnspecified = 0,
ProbeErrorPidReuse = 1,
ProbeErrorNotRegistered = 2,
ProbeErrorPolicyDenied = 3,
ProbeErrorDeadline = 4,
ProbeErrorInternal = 5,
}Expand description
Failure classification carried on reply messages.
Deliberately coarse: the wire reports the category a caller must branch on, while human-readable detail travels in message-specific string fields. Adding a variant is additive; values are never reused.
Variants§
ProbeErrorUnspecified = 0
ProbeErrorPidReuse = 1
The addressed pid no longer refers to the registered process instance —
ProcessKey.start_time / boot_id did not match. Never act on the pid.
ProbeErrorNotRegistered = 2
No ARMED registration exists for this key.
ProbeErrorPolicyDenied = 3
The target’s AllowPolicy refused the operation.
ProbeErrorDeadline = 4
ProbeEnvelope.deadline_unix_ms passed before the work completed.
ProbeErrorInternal = 5
Implementations§
Source§impl ProbeErrorCode
impl ProbeErrorCode
Sourcepub fn as_str_name(&self) -> &'static str
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.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ProbeErrorCode
impl Clone for ProbeErrorCode
Source§fn clone(&self) -> ProbeErrorCode
fn clone(&self) -> ProbeErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more