Skip to main content

RuntimeAdmissionHook

Trait RuntimeAdmissionHook 

Source
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§

Provided Methods§

Source

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".

Implementors§