pub struct Layer<R, C = Json> { /* private fields */ }Expand description
Creates a layer which wraps a given service inside an api translation layer (see Service).
The api layer will translate requests of type R with codec C.
Trait Implementations§
Auto Trait Implementations§
impl<R, C> Freeze for Layer<R, C>
impl<R, C> RefUnwindSafe for Layer<R, C>where
R: RefUnwindSafe,
C: RefUnwindSafe,
impl<R, C> Send for Layer<R, C>
impl<R, C> Sync for Layer<R, C>
impl<R, C> Unpin for Layer<R, C>
impl<R, C> UnwindSafe for Layer<R, C>where
R: UnwindSafe,
C: 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