pub struct LayerPlugin<L>(pub L);Expand description
A Plugin which acts as a [Layer] L.
Tuple Fields§
§0: LTrait Implementations§
Source§impl<Ser, Op, S, L> Plugin<Ser, Op, S> for LayerPlugin<L>where
L: Layer<S>,
impl<Ser, Op, S, L> Plugin<Ser, Op, S> for LayerPlugin<L>where
L: Layer<S>,
impl<L> HttpMarker for LayerPlugin<L>
impl<L> ModelMarker for LayerPlugin<L>
Auto Trait Implementations§
impl<L> Freeze for LayerPlugin<L>where
L: Freeze,
impl<L> RefUnwindSafe for LayerPlugin<L>where
L: RefUnwindSafe,
impl<L> Send for LayerPlugin<L>where
L: Send,
impl<L> Sync for LayerPlugin<L>where
L: Sync,
impl<L> Unpin for LayerPlugin<L>where
L: Unpin,
impl<L> UnwindSafe for LayerPlugin<L>where
L: 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.