Skip to main content

PluginExecutionRequestProvider

Trait PluginExecutionRequestProvider 

Source
pub trait PluginExecutionRequestProvider: Send + Sync {
    // Required method
    fn request_for(
        &self,
        request: &DecisionExecutionRequest,
    ) -> Result<PluginExecutionRequest, DecisionExecutorError>;
}
Expand description

Host policy that creates one capability-bound plugin invocation.

The provider receives the complete immutable decision request so it can bind the plugin request to the exact evidence subject and verification case while selecting host-owned origin, broker, input, budget, cancellation, redaction, and reliability policy.

Required Methods§

Source

fn request_for( &self, request: &DecisionExecutionRequest, ) -> Result<PluginExecutionRequest, DecisionExecutorError>

Produces a host-owned plugin request without performing plugin work.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F> PluginExecutionRequestProvider for F

Available on crate feature plugins only.