Struct UriMatchReplaceFallthrough
pub struct UriMatchReplaceFallthrough<R>(pub R);Expand description
Apply fallthrough to slices, arrays, tuples or vectors.
Tuple Fields§
§0: RTrait Implementations§
§impl<R> UriMatchReplace for UriMatchReplaceFallthrough<&[R]>where
R: UriMatchReplace,
impl<R> UriMatchReplace for UriMatchReplaceFallthrough<&[R]>where
R: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<R, const N: usize> UriMatchReplace for UriMatchReplaceFallthrough<[R; N]>where
R: UriMatchReplace,
impl<R, const N: usize> UriMatchReplace for UriMatchReplaceFallthrough<[R; N]>where
R: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1> UriMatchReplace for UriMatchReplaceFallthrough<(T1,)>where
T1: UriMatchReplace,
impl<T1> UriMatchReplace for UriMatchReplaceFallthrough<(T1,)>where
T1: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
impl<T1, T2> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3)>
impl<T1, T2, T3> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3)>
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4)>
impl<T1, T2, T3, T4> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4)>
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4, T5> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
impl<T1, T2, T3, T4, T5> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4, T5, T6> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
impl<T1, T2, T3, T4, T5, T6> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4, T5, T6, T7> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
impl<T1, T2, T3, T4, T5, T6, T7> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4, T5, T6, T7, T8> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
impl<T1, T2, T3, T4, T5, T6, T7, T8> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
T9: UriMatchReplace,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
T9: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
T9: UriMatchReplace,
T10: UriMatchReplace,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
T9: UriMatchReplace,
T10: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
T9: UriMatchReplace,
T10: UriMatchReplace,
T11: UriMatchReplace,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
T9: UriMatchReplace,
T10: UriMatchReplace,
T11: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
T9: UriMatchReplace,
T10: UriMatchReplace,
T11: UriMatchReplace,
T12: UriMatchReplace,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> UriMatchReplace for UriMatchReplaceFallthrough<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>where
T1: UriMatchReplace,
T2: UriMatchReplace,
T3: UriMatchReplace,
T4: UriMatchReplace,
T5: UriMatchReplace,
T6: UriMatchReplace,
T7: UriMatchReplace,
T8: UriMatchReplace,
T9: UriMatchReplace,
T10: UriMatchReplace,
T11: UriMatchReplace,
T12: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read more§impl<R> UriMatchReplace for UriMatchReplaceFallthrough<Vec<R>>where
R: UriMatchReplace,
impl<R> UriMatchReplace for UriMatchReplaceFallthrough<Vec<R>>where
R: UriMatchReplace,
§fn match_replace_uri<'a>(
&self,
uri: Cow<'a, Uri>,
) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
fn match_replace_uri<'a>( &self, uri: Cow<'a, Uri>, ) -> Result<Cow<'a, Uri>, UriMatchError<'a>>
Tries to match
uri against the rule’s pattern and, on success,
returns the same Uri or a new reformatted Uri. Read moreAuto Trait Implementations§
impl<R> Freeze for UriMatchReplaceFallthrough<R>where
R: Freeze,
impl<R> RefUnwindSafe for UriMatchReplaceFallthrough<R>where
R: RefUnwindSafe,
impl<R> Send for UriMatchReplaceFallthrough<R>where
R: Send,
impl<R> Sync for UriMatchReplaceFallthrough<R>where
R: Sync,
impl<R> Unpin for UriMatchReplaceFallthrough<R>where
R: Unpin,
impl<R> UnwindSafe for UriMatchReplaceFallthrough<R>where
R: 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,
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
§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<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<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