Struct aws_smithy_http_server::plugin::FilterByOperation
source · pub struct FilterByOperation<Inner, F> { /* private fields */ }
Expand description
Filters the application of an inner Plugin
using a predicate over the
ServiceShape::Operations
.
This contrasts with Scoped
which can be used to selectively apply a Plugin
to a
subset of operations at compile time.
See filter_by_operation
for more details.
Trait Implementations§
source§impl<Ser, Op, T, Inner, F> Plugin<Ser, Op, T> for FilterByOperation<Inner, F>where
Ser: ContainsOperation<Op>,
F: Fn(Ser::Operations) -> bool,
Inner: Plugin<Ser, Op, T>,
Op: OperationShape,
impl<Ser, Op, T, Inner, F> Plugin<Ser, Op, T> for FilterByOperation<Inner, F>where
Ser: ContainsOperation<Op>,
F: Fn(Ser::Operations) -> bool,
Inner: Plugin<Ser, Op, T>,
Op: OperationShape,
impl<Inner, F> HttpMarker for FilterByOperation<Inner, F>where
Inner: HttpMarker,
impl<Inner, F> ModelMarker for FilterByOperation<Inner, F>where
Inner: ModelMarker,
Auto Trait Implementations§
impl<Inner, F> Freeze for FilterByOperation<Inner, F>
impl<Inner, F> RefUnwindSafe for FilterByOperation<Inner, F>where
Inner: RefUnwindSafe,
F: RefUnwindSafe,
impl<Inner, F> Send for FilterByOperation<Inner, F>
impl<Inner, F> Sync for FilterByOperation<Inner, F>
impl<Inner, F> Unpin for FilterByOperation<Inner, F>
impl<Inner, F> UnwindSafe for FilterByOperation<Inner, F>where
Inner: UnwindSafe,
F: UnwindSafe,
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
§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 moreCreates a shared type from an unshared type.