pub struct PredicateFactory;
Expand description
Factory for creating predicates based on configuration.
Implementations§
Source§impl PredicateFactory
impl PredicateFactory
Sourcepub fn create_predicate(
predicate_type: &str,
config: Value,
) -> Result<Arc<dyn Predicate>, ProxyError>
pub fn create_predicate( predicate_type: &str, config: Value, ) -> Result<Arc<dyn Predicate>, ProxyError>
Create a predicate based on the predicate type and configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PredicateFactory
impl RefUnwindSafe for PredicateFactory
impl Send for PredicateFactory
impl Sync for PredicateFactory
impl Unpin for PredicateFactory
impl UnwindSafe for PredicateFactory
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