pub trait WithPolicyCheck {
// Required method
fn with_policy_check<C: ComponentInstanceInterface + 'static>(
self,
capability_source: CapabilitySource,
policy_checker: GlobalPolicyChecker,
) -> Self;
}
Required Methods§
Sourcefn with_policy_check<C: ComponentInstanceInterface + 'static>(
self,
capability_source: CapabilitySource,
policy_checker: GlobalPolicyChecker,
) -> Self
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.