Skip to main content

ChannelConfigValidator

Type Alias ChannelConfigValidator 

Source
pub type ChannelConfigValidator = Arc<dyn Fn(Option<&Value>) -> Result<(), RuntimeError> + Send + Sync>;
Expand description

A component validates its own exact value, or its absence, before activation. Checks must be pure and idempotent: host preparation and pack activation may both invoke them. They must not start work or depend on exactly one invocation.

Aliased Typeยง

pub struct ChannelConfigValidator { /* private fields */ }