Trait rama_proxy::ProxyQueryPredicate

source ·
pub trait ProxyQueryPredicate:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn execute(&self, proxy: &Proxy) -> bool;
}
Expand description

Trait that is used by the ProxyDB for providing an optional filter predicate to rule out returned results.

Required Methods§

source

fn execute(&self, proxy: &Proxy) -> bool

Execute the predicate.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ProxyQueryPredicate for bool

source§

fn execute(&self, _proxy: &Proxy) -> bool

Implementors§

source§

impl<F> ProxyQueryPredicate for F
where F: Fn(&Proxy) -> bool + Clone + Send + Sync + 'static,