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>

source

pub fn new(inner: Inner, outer: Outer) -> Self

Creates a new PluginStack.

Trait Implementations§

source§

impl<Inner: Debug, Outer: Debug> Debug for PluginStack<Inner, Outer>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Ser, Op, T, Inner, Outer> Plugin<Ser, Op, T> for PluginStack<Inner, Outer>
where Inner: Plugin<Ser, Op, T>, Outer: Plugin<Ser, Op, Inner::Output>,

§

type Output = <Outer as Plugin<Ser, Op, <Inner as Plugin<Ser, Op, T>>::Output>>::Output

The type of the new Service.
source§

fn apply(&self, input: T) -> Self::Output

Maps a Service to another.
source§

impl<Inner, Outer> HttpMarker for PluginStack<Inner, Outer>
where Inner: HttpMarker, Outer: HttpMarker,

source§

impl<Inner, Outer> ModelMarker for PluginStack<Inner, Outer>
where Inner: ModelMarker, Outer: ModelMarker,

Auto Trait Implementations§

§

impl<Inner, Outer> Freeze for PluginStack<Inner, Outer>
where Inner: Freeze, Outer: Freeze,

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more