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 plugins is PluginPipeline.
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<P, Op, S, L, Inner, Outer> Plugin<P, Op, S, L> for PluginStack<Inner, Outer>where
Inner: Plugin<P, Op, S, L>,
Outer: Plugin<P, Op, Inner::Service, Inner::Layer>,
impl<P, Op, S, L, Inner, Outer> Plugin<P, Op, S, L> for PluginStack<Inner, Outer>where Inner: Plugin<P, Op, S, L>, Outer: Plugin<P, Op, Inner::Service, Inner::Layer>,
§type Service = <Outer as Plugin<P, Op, <Inner as Plugin<P, Op, S, L>>::Service, <Inner as Plugin<P, Op, S, L>>::Layer>>::Service
type Service = <Outer as Plugin<P, Op, <Inner as Plugin<P, Op, S, L>>::Service, <Inner as Plugin<P, Op, S, L>>::Layer>>::Service
The type of the new
Service.Auto Trait Implementations§
impl<Inner, Outer> RefUnwindSafe for PluginStack<Inner, Outer>where Inner: RefUnwindSafe, Outer: RefUnwindSafe,
impl<Inner, Outer> Send for PluginStack<Inner, Outer>where Inner: Send, Outer: Send,
impl<Inner, Outer> Sync for PluginStack<Inner, Outer>where Inner: Sync, Outer: Sync,
impl<Inner, Outer> Unpin for PluginStack<Inner, Outer>where Inner: Unpin, Outer: Unpin,
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