routing::bedrock::with_policy_check

Trait WithPolicyCheck

Source
pub trait WithPolicyCheck {
    // Required method
    fn with_policy_check<C: ComponentInstanceInterface + 'static>(
        self,
        capability_source: CapabilitySource,
        policy_checker: GlobalPolicyChecker,
    ) -> Self;
}

Required Methods§

Source

fn with_policy_check<C: ComponentInstanceInterface + 'static>( self, capability_source: CapabilitySource, policy_checker: GlobalPolicyChecker, ) -> Self

Returns a router that ensures the capability request is allowed by the policy in GlobalPolicyChecker.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: CapabilityBound> WithPolicyCheck for Router<T>

Source§

fn with_policy_check<C: ComponentInstanceInterface + 'static>( self, capability_source: CapabilitySource, policy_checker: GlobalPolicyChecker, ) -> Self

Implementors§