pub struct PathPredicate { /* private fields */ }
Expand description
A predicate that matches on request path.
Implementations§
Source§impl PathPredicate
impl PathPredicate
Sourcepub fn new(config: PathPredicateConfig) -> Result<Self, ProxyError>
pub fn new(config: PathPredicateConfig) -> Result<Self, ProxyError>
Create a new path predicate with the given configuration.
Trait Implementations§
Source§impl Debug for PathPredicate
impl Debug for PathPredicate
Source§impl Predicate for PathPredicate
impl Predicate for PathPredicate
Source§fn matches<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProxyRequest,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn matches<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProxyRequest,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if the request matches this predicate.
Source§fn predicate_type(&self) -> &str
fn predicate_type(&self) -> &str
Get the predicate type.
Auto Trait Implementations§
impl Freeze for PathPredicate
impl RefUnwindSafe for PathPredicate
impl Send for PathPredicate
impl Sync for PathPredicate
impl Unpin for PathPredicate
impl UnwindSafe for PathPredicate
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