pub struct PredicateRouter { /* private fields */ }
Expand description
The predicable router implementation.
Implementations§
Trait Implementations§
Source§impl Debug for PredicateRouter
impl Debug for PredicateRouter
Source§impl Router for PredicateRouter
impl Router for PredicateRouter
Source§fn route<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProxyRequest,
) -> Pin<Box<dyn Future<Output = Result<Route, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn route<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProxyRequest,
) -> Pin<Box<dyn Future<Output = Result<Route, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Find a route for the given request.
Source§fn get_routes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<Route>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_routes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<Route>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all routes managed by this router.
Auto Trait Implementations§
impl !Freeze for PredicateRouter
impl !RefUnwindSafe for PredicateRouter
impl Send for PredicateRouter
impl Sync for PredicateRouter
impl Unpin for PredicateRouter
impl !UnwindSafe for PredicateRouter
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