Struct aws_smithy_http_server::plugin::PluginStack
source · pub struct PluginStack<Inner, Outer> { /* private fields */ }
Expand description
A wrapper struct which composes an Inner
and an Outer
Plugin
.
The Inner::map
is run then the Outer::map
.
Note that the primary tool for composing HTTP plugins is
HttpPlugins
, and the primary tool for composing HTTP plugins is
ModelPlugins
; if you are an application writer, you should
prefer composing plugins using these.
Implementations§
source§impl<Inner, Outer> PluginStack<Inner, Outer>
impl<Inner, Outer> PluginStack<Inner, Outer>
sourcepub fn new(inner: Inner, outer: Outer) -> Self
pub fn new(inner: Inner, outer: Outer) -> Self
Creates a new PluginStack
.
Trait Implementations§
source§impl<Ser, Op, T, Inner, Outer> Plugin<Ser, Op, T> for PluginStack<Inner, Outer>
impl<Ser, Op, T, Inner, Outer> Plugin<Ser, Op, T> for PluginStack<Inner, Outer>
impl<Inner, Outer> HttpMarker for PluginStack<Inner, Outer>where
Inner: HttpMarker,
Outer: HttpMarker,
impl<Inner, Outer> ModelMarker for PluginStack<Inner, Outer>where
Inner: ModelMarker,
Outer: ModelMarker,
Auto Trait Implementations§
impl<Inner, Outer> Freeze for PluginStack<Inner, Outer>
impl<Inner, Outer> RefUnwindSafe for PluginStack<Inner, Outer>where
Inner: RefUnwindSafe,
Outer: RefUnwindSafe,
impl<Inner, Outer> Send for PluginStack<Inner, Outer>
impl<Inner, Outer> Sync for PluginStack<Inner, Outer>
impl<Inner, Outer> Unpin for PluginStack<Inner, Outer>
impl<Inner, Outer> UnwindSafe for PluginStack<Inner, Outer>where
Inner: UnwindSafe,
Outer: 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.