pub trait RuntimeAdmissionHook: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn evaluate(
&self,
context: &RuntimeAdmissionContext<'_>,
) -> Result<RuntimeAdmissionDecision, KernelError>;
// Provided method
fn release_reserved(&self, _metadata: &Value) -> Result<(), KernelError> { ... }
}Expand description
Optional pre-dispatch admission hook for product-specific runtime gates.
Required Methods§
fn name(&self) -> &str
fn evaluate( &self, context: &RuntimeAdmissionContext<'_>, ) -> Result<RuntimeAdmissionDecision, KernelError>
Provided Methods§
fn release_reserved(&self, _metadata: &Value) -> Result<(), KernelError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".