pub struct PolicyEngine {}Expand description
Policy engine implementation
Implementations§
Source§impl PolicyEngine
impl PolicyEngine
Trait Implementations§
Source§impl Default for PolicyEngine
impl Default for PolicyEngine
Source§impl PolicyEngineTrait for PolicyEngine
impl PolicyEngineTrait for PolicyEngine
Source§fn evaluate_pricing<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_policy: &'life1 PricingPolicy,
_context: &'life2 PricingContext,
) -> Pin<Box<dyn Future<Output = Result<PricingResult, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn evaluate_pricing<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_policy: &'life1 PricingPolicy,
_context: &'life2 PricingContext,
) -> Pin<Box<dyn Future<Output = Result<PricingResult, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Evaluate pricing policy
Source§fn check_eligibility<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_rule: &'life1 EligibilityRule,
_context: &'life2 EligibilityContext,
) -> Pin<Box<dyn Future<Output = Result<bool, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_eligibility<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_rule: &'life1 EligibilityRule,
_context: &'life2 EligibilityContext,
) -> Pin<Box<dyn Future<Output = Result<bool, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Check eligibility
Source§fn evaluate_bundle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_rule: &'life1 BundleRule,
_context: &'life2 BundleContext,
) -> Pin<Box<dyn Future<Output = Result<BundleResult, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn evaluate_bundle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_rule: &'life1 BundleRule,
_context: &'life2 BundleContext,
) -> Pin<Box<dyn Future<Output = Result<BundleResult, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Evaluate bundle rules
Source§fn get_sla<'life0, 'life1, 'async_trait>(
&'life0 self,
_service_type: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SLAPolicy, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_sla<'life0, 'life1, 'async_trait>(
&'life0 self,
_service_type: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SLAPolicy, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get SLA policy
Source§fn select_network<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_policy: &'life1 NetworkSelectionPolicy,
_context: &'life2 NetworkContext,
) -> Pin<Box<dyn Future<Output = Result<NetworkSelection, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn select_network<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_policy: &'life1 NetworkSelectionPolicy,
_context: &'life2 NetworkContext,
) -> Pin<Box<dyn Future<Output = Result<NetworkSelection, PolicyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Select network
Auto Trait Implementations§
impl Freeze for PolicyEngine
impl RefUnwindSafe for PolicyEngine
impl Send for PolicyEngine
impl Sync for PolicyEngine
impl Unpin for PolicyEngine
impl UnsafeUnpin for PolicyEngine
impl UnwindSafe for PolicyEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more