pub struct MethodPredicate { /* private fields */ }
Expand description
A predicate that matches on HTTP method.
Implementations§
Source§impl MethodPredicate
impl MethodPredicate
Sourcepub fn new(config: MethodPredicateConfig) -> Self
pub fn new(config: MethodPredicateConfig) -> Self
Create a new method predicate with the given configuration.
Trait Implementations§
Source§impl Debug for MethodPredicate
impl Debug for MethodPredicate
Source§impl Predicate for MethodPredicate
impl Predicate for MethodPredicate
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 MethodPredicate
impl RefUnwindSafe for MethodPredicate
impl Send for MethodPredicate
impl Sync for MethodPredicate
impl Unpin for MethodPredicate
impl UnwindSafe for MethodPredicate
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