Struct MatcherRouter
pub struct MatcherRouter<N>(pub N);Expand description
Tuple Fields§
§0: NTrait Implementations§
§impl<N> Clone for MatcherRouter<N>where
N: Clone,
impl<N> Clone for MatcherRouter<N>where
N: Clone,
§fn clone(&self) -> MatcherRouter<N>
fn clone(&self) -> MatcherRouter<N>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<N> Debug for MatcherRouter<N>where
N: Debug,
impl<N> Debug for MatcherRouter<N>where
N: Debug,
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, M_T9, T9, M_T10, T10, M_T11, T11, M_T12, T12, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), (M_T12, T12), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
M_T9: Matcher<Input>,
T9: Service<Input, Output = Output, Error = Error>,
M_T10: Matcher<Input>,
T10: Service<Input, Output = Output, Error = Error>,
M_T11: Matcher<Input>,
T11: Service<Input, Output = Output, Error = Error>,
M_T12: Matcher<Input>,
T12: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, M_T9, T9, M_T10, T10, M_T11, T11, M_T12, T12, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), (M_T12, T12), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
M_T9: Matcher<Input>,
T9: Service<Input, Output = Output, Error = Error>,
M_T10: Matcher<Input>,
T10: Service<Input, Output = Output, Error = Error>,
M_T11: Matcher<Input>,
T11: Service<Input, Output = Output, Error = Error>,
M_T12: Matcher<Input>,
T12: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), (M_T12, T12), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), (M_T12, T12), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), (M_T12, T12), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), (M_T12, T12), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, M_T9, T9, M_T10, T10, M_T11, T11, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
M_T9: Matcher<Input>,
T9: Service<Input, Output = Output, Error = Error>,
M_T10: Matcher<Input>,
T10: Service<Input, Output = Output, Error = Error>,
M_T11: Matcher<Input>,
T11: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, M_T9, T9, M_T10, T10, M_T11, T11, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
M_T9: Matcher<Input>,
T9: Service<Input, Output = Output, Error = Error>,
M_T10: Matcher<Input>,
T10: Service<Input, Output = Output, Error = Error>,
M_T11: Matcher<Input>,
T11: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), (M_T11, T11), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, M_T9, T9, M_T10, T10, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
M_T9: Matcher<Input>,
T9: Service<Input, Output = Output, Error = Error>,
M_T10: Matcher<Input>,
T10: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, M_T9, T9, M_T10, T10, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
M_T9: Matcher<Input>,
T9: Service<Input, Output = Output, Error = Error>,
M_T10: Matcher<Input>,
T10: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), (M_T10, T10), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, M_T9, T9, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
M_T9: Matcher<Input>,
T9: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, M_T9, T9, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
M_T9: Matcher<Input>,
T9: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), (M_T9, T9), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, M_T8, T8, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
M_T8: Matcher<Input>,
T8: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), (M_T8, T8), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, M_T7, T7, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
M_T7: Matcher<Input>,
T7: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), (M_T7, T7), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, M_T6, T6, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
M_T6: Matcher<Input>,
T6: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), (M_T6, T6), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, M_T5, T5, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
M_T5: Matcher<Input>,
T5: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), (M_T5, T5), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, M_T4, T4, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
M_T4: Matcher<Input>,
T4: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), (M_T4, T4), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, M_T3, T3, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
impl<M_T1, T1, M_T2, T2, M_T3, T3, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), S)>where
Input: Send + ExtensionsMut + 'static,
Output: Send + 'static,
M_T1: Matcher<Input>,
T1: Service<Input, Output = Output, Error = Error>,
M_T2: Matcher<Input>,
T2: Service<Input, Output = Output, Error = Error>,
M_T3: Matcher<Input>,
T3: Service<Input, Output = Output, Error = Error>,
S: Service<Input, Output = Output, Error = Error>,
Error: Send + 'static,
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), (M_T3, T3), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, M_T2, T2, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), S)>
impl<M_T1, T1, M_T2, T2, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), (M_T2, T2), S)>
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), (M_T2, T2), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), (M_T2, T2), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
§impl<M_T1, T1, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), S)>
impl<M_T1, T1, S, Input, Output, Error> Service<Input> for MatcherRouter<((M_T1, T1), S)>
§async fn serve(
&self,
input: Input,
) -> Result<<MatcherRouter<((M_T1, T1), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), S)> as Service<Input>>::Error>
async fn serve( &self, input: Input, ) -> Result<<MatcherRouter<((M_T1, T1), S)> as Service<Input>>::Output, <MatcherRouter<((M_T1, T1), S)> as Service<Input>>::Error>
Serve a an output or error for the given input,
using the given context.
§fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
fn boxed(self) -> BoxService<Input, Self::Output, Self::Error>
Box this service to allow for dynamic dispatch.
Auto Trait Implementations§
impl<N> Freeze for MatcherRouter<N>where
N: Freeze,
impl<N> RefUnwindSafe for MatcherRouter<N>where
N: RefUnwindSafe,
impl<N> Send for MatcherRouter<N>where
N: Send,
impl<N> Sync for MatcherRouter<N>where
N: Sync,
impl<N> Unpin for MatcherRouter<N>where
N: Unpin,
impl<N> UnwindSafe for MatcherRouter<N>where
N: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<S, Input, Connection> ConnectorService<Input> for S
impl<S, Input, Connection> ConnectorService<Input> for S
§type Connection = Connection
type Connection = Connection
Connection returned by the
ConnectorService§fn connect(
&self,
input: Input,
) -> impl Future<Output = Result<EstablishedClientConnection<<S as ConnectorService<Input>>::Connection, Input>, <S as ConnectorService<Input>>::Error>> + Send
fn connect( &self, input: Input, ) -> impl Future<Output = Result<EstablishedClientConnection<<S as ConnectorService<Input>>::Connection, Input>, <S as ConnectorService<Input>>::Error>> + Send
Establish a connection, which often involves some kind of handshake,
or connection revival.
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<S, Body> HttpClientExt for S
impl<S, Body> HttpClientExt for S
§type ExecuteResponse = Response<Body>
type ExecuteResponse = Response<Body>
The response type returned by the
execute method.§type ExecuteError = <S as Service<Request>>::Error
type ExecuteError = <S as Service<Request>>::Error
The error type returned by the
execute method.§fn get(
&self,
url: impl IntoUrl,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn get( &self, url: impl IntoUrl, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
Convenience method to make a
GET request to a URL. Read more§fn post(
&self,
url: impl IntoUrl,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn post( &self, url: impl IntoUrl, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
Convenience method to make a
POST request to a URL. Read more§fn put(
&self,
url: impl IntoUrl,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn put( &self, url: impl IntoUrl, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
Convenience method to make a
PUT request to a URL. Read more§fn patch(
&self,
url: impl IntoUrl,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn patch( &self, url: impl IntoUrl, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
Convenience method to make a
PATCH request to a URL. Read more§fn delete(
&self,
url: impl IntoUrl,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn delete( &self, url: impl IntoUrl, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
Convenience method to make a
DELETE request to a URL. Read more§fn head(
&self,
url: impl IntoUrl,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn head( &self, url: impl IntoUrl, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
Convenience method to make a
HEAD request to a URL. Read more§fn connect(
&self,
url: impl IntoUrl,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn connect( &self, url: impl IntoUrl, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
Convenience method to make a
CONNECT request to a URL. Read more§fn request(
&self,
method: Method,
url: impl IntoUrl,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn request( &self, method: Method, url: impl IntoUrl, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
§fn build_from_request<RequestBody>(
&self,
request: Request<RequestBody>,
) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
fn build_from_request<RequestBody>( &self, request: Request<RequestBody>, ) -> RequestBuilder<'_, S, <S as HttpClientExt>::ExecuteResponse>
§fn execute(
&self,
request: Request,
) -> impl Future<Output = Result<<S as HttpClientExt>::ExecuteResponse, <S as HttpClientExt>::ExecuteError>>
fn execute( &self, request: Request, ) -> impl Future<Output = Result<<S as HttpClientExt>::ExecuteResponse, <S as HttpClientExt>::ExecuteError>>
Executes a
Request. Read more§impl<S, Body> HttpClientWebSocketExt<Body> for S
impl<S, Body> HttpClientWebSocketExt<Body> for S
§fn websocket(
&self,
url: impl IntoUrl,
) -> WebSocketRequestBuilder<WithService<'_, S, Body>>
fn websocket( &self, url: impl IntoUrl, ) -> WebSocketRequestBuilder<WithService<'_, S, Body>>
Create a new
WebSocketRequestBuilder] to be used to establish a WebSocket connection over http/1.1.§fn websocket_h2(
&self,
url: impl IntoUrl,
) -> WebSocketRequestBuilder<WithService<'_, S, Body>>
fn websocket_h2( &self, url: impl IntoUrl, ) -> WebSocketRequestBuilder<WithService<'_, S, Body>>
Create a new
WebSocketRequestBuilder to be used to establish a WebSocket connection over h2.§fn websocket_with_request<RequestBody>(
&self,
req: Request<RequestBody>,
) -> WebSocketRequestBuilder<WithService<'_, S, Body>>
fn websocket_with_request<RequestBody>( &self, req: Request<RequestBody>, ) -> WebSocketRequestBuilder<WithService<'_, S, Body>>
Create a new
WebSocketRequestBuilder starting from the given request. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<S, R> IntoEndpointService<(R,)> for S
impl<S, R> IntoEndpointService<(R,)> for S
§fn into_endpoint_service(
self,
) -> impl Service<Request, Output = Response, Error = Infallible>
fn into_endpoint_service( self, ) -> impl Service<Request, Output = Response, Error = Infallible>
convert the type into a
rama_core::Service.§impl<S, R, State> IntoEndpointServiceWithState<(R,), State> for S
impl<S, R, State> IntoEndpointServiceWithState<(R,), State> for S
§fn into_endpoint_service_with_state(
self,
_state: State,
) -> impl Service<Request, Output = Response, Error = Infallible>
fn into_endpoint_service_with_state( self, _state: State, ) -> impl Service<Request, Output = Response, Error = Infallible>
convert the type into a
rama_core::Service with state.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more