Struct aws_smithy_http_server::plugin::PluginLayer

source ·
pub struct PluginLayer<Ser, Op, Pl> { /* private fields */ }
Expand description

A [Layer] which acts as a Plugin Pl for specific protocol P and operation Op.

Implementations§

source§

impl<Pl> PluginLayer<(), (), Pl>

source

pub fn new<Ser, Op>(plugin: Pl) -> PluginLayer<Ser, Op, Pl>

Trait Implementations§

source§

impl<S, Ser, Op, Pl> Layer<S> for PluginLayer<Ser, Op, Pl>
where Pl: Plugin<Ser, Op, S>,

§

type Service = <Pl as Plugin<Ser, Op, S>>::Output

The wrapped service
source§

fn layer(&self, inner: S) -> Self::Service

Wrap the given service with the middleware, returning a new service that has been decorated with the middleware.

Auto Trait Implementations§

§

impl<Ser, Op, Pl> Freeze for PluginLayer<Ser, Op, Pl>
where Pl: Freeze,

§

impl<Ser, Op, Pl> RefUnwindSafe for PluginLayer<Ser, Op, Pl>

§

impl<Ser, Op, Pl> Send for PluginLayer<Ser, Op, Pl>
where Pl: Send, Ser: Send, Op: Send,

§

impl<Ser, Op, Pl> Sync for PluginLayer<Ser, Op, Pl>
where Pl: Sync, Ser: Sync, Op: Sync,

§

impl<Ser, Op, Pl> Unpin for PluginLayer<Ser, Op, Pl>
where Pl: Unpin, Ser: Unpin, Op: Unpin,

§

impl<Ser, Op, Pl> UnwindSafe for PluginLayer<Ser, Op, Pl>
where Pl: UnwindSafe, Ser: UnwindSafe, Op: 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