pub struct Layer<S, R, G = fn(_: &S) -> Span>where
G: GetSpan<S>,
S: Service<R>,{ /* private fields */ }
Available on crate feature
tower-layer
only.Trait Implementations§
Auto Trait Implementations§
impl<S, R, G> Freeze for Layer<S, R, G>where
G: Freeze,
impl<S, R, G> RefUnwindSafe for Layer<S, R, G>where
G: RefUnwindSafe,
impl<S, R, G> Send for Layer<S, R, G>where
G: Send,
impl<S, R, G> Sync for Layer<S, R, G>where
G: Sync,
impl<S, R, G> Unpin for Layer<S, R, G>where
G: Unpin,
impl<S, R, G> UnwindSafe for Layer<S, R, G>where
G: 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