Enum Registration Surface
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.
Closed registration surfaces; unspecified and unknown values cannot be invoked.
Variants
Unspecified = 0
Unspecified = 0
No registration surface selected; invalid for registrations and invocations.
Subscriber = 1
Subscriber = 1
Observes an event and completes without returning a rewritten value.
EventMetadataInjector = 2
EventMetadataInjector = 2
Produces open metadata additions for an observed event.
ToolSanitizeRequestGuardrail = 10
ToolSanitizeRequestGuardrail = 10
Rewrites tool request arguments before execution.
ToolSanitizeResponseGuardrail = 11
ToolSanitizeResponseGuardrail = 11
Rewrites the application tool result after execution.
ToolConditionalExecutionGuardrail = 12
ToolConditionalExecutionGuardrail = 12
Allows or blocks execution of a tool request.
ToolRequestIntercept = 13
ToolRequestIntercept = 13
Rewrites a tool request within the ordered interceptor chain.
ToolExecutionIntercept = 14
ToolExecutionIntercept = 14
Executes or delegates a managed tool call and may schedule marks.
LlmSanitizeRequestGuardrail = 20
LlmSanitizeRequestGuardrail = 20
Rewrites a provider LLM request using its codec context.
LlmSanitizeResponseGuardrail = 21
LlmSanitizeResponseGuardrail = 21
Rewrites a provider LLM response using its codec context.
LlmConditionalExecutionGuardrail = 22
LlmConditionalExecutionGuardrail = 22
Allows or blocks execution of an LLM request.
LlmRequestIntercept = 23
LlmRequestIntercept = 23
Rewrites a provider request or normalized annotation and may contribute evidence.
LlmExecutionIntercept = 24
LlmExecutionIntercept = 24
Executes or delegates a unary LLM call with request and response codec access.
LlmStreamExecutionIntercept = 25
LlmStreamExecutionIntercept = 25
Executes or delegates streaming LLM output with request-only codec access.
MarkSanitizeGuardrail = 30
MarkSanitizeGuardrail = 30
Replaces sanitizable fields of a mark before publication.
ScopeSanitizeStartGuardrail = 31
ScopeSanitizeStartGuardrail = 31
Replaces sanitizable fields of a scope-start event before publication.
ScopeSanitizeEndGuardrail = 32
ScopeSanitizeEndGuardrail = 32
Replaces sanitizable fields of a scope-end event before publication.
ConditionalMiddlewareGuardrail = 40
ConditionalMiddlewareGuardrail = 40
Allows or blocks selected middleware registrations before they execute.
Implementations
impl RegistrationSurface
impl RegistrationSurface
is_valid
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of RegistrationSurface.
from_i32
pub fn from_i32(value: i32) -> Option<RegistrationSurface>
Converts an i32 to a RegistrationSurface, or None if value is not a valid variant.
impl RegistrationSurface
impl RegistrationSurface
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 RegistrationSurface
impl Clone for RegistrationSurface
clone
fn clone(&self) -> RegistrationSurface
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for RegistrationSurface
impl Debug for RegistrationSurface
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for RegistrationSurface
impl Default for RegistrationSurface
default
fn default() -> RegistrationSurface
impl From<RegistrationSurface> for i32
impl From<RegistrationSurface> for i32
from
fn from(value: RegistrationSurface) -> i32
impl Hash for RegistrationSurface
impl Hash for RegistrationSurface
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 RegistrationSurface
impl Ord for RegistrationSurface
cmp
fn cmp(&self, other: &RegistrationSurface) -> 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 RegistrationSurface
impl PartialEq for RegistrationSurface
eq
fn eq(&self, other: &RegistrationSurface) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl PartialOrd for RegistrationSurface
impl PartialOrd for RegistrationSurface
partial_cmp
fn partial_cmp(&self, other: &RegistrationSurface) -> 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 RegistrationSurface
impl TryFrom<i32> for RegistrationSurface
Error
type Error = UnknownEnumValue
try_from
fn try_from(value: i32) -> Result<RegistrationSurface, UnknownEnumValue>
impl Copy for RegistrationSurface
impl Copy for RegistrationSurface
impl Eq for RegistrationSurface
impl Eq for RegistrationSurface
impl StructuralPartialEq for RegistrationSurface
impl StructuralPartialEq for RegistrationSurface