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>
impl<Pl> PluginLayer<(), (), Pl>
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>,
impl<S, Ser, Op, Pl> Layer<S> for PluginLayer<Ser, Op, Pl>where
Pl: Plugin<Ser, Op, S>,
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>
impl<Ser, Op, Pl> Sync for PluginLayer<Ser, Op, Pl>
impl<Ser, Op, Pl> Unpin for PluginLayer<Ser, Op, Pl>
impl<Ser, Op, Pl> UnwindSafe for PluginLayer<Ser, Op, Pl>
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.