pub struct LayerFn<C, FN> { /* private fields */ }
Expand description
A struct that wraps a closure to implement FactoryLayer
.
LayerFn
allows closures to be used as FactoryLayer
s, providing a flexible way
to create custom layers.
Trait Implementations§
Auto Trait Implementations§
impl<C, FN> Freeze for LayerFn<C, FN>where
FN: Freeze,
impl<C, FN> RefUnwindSafe for LayerFn<C, FN>where
FN: RefUnwindSafe,
impl<C, FN> Send for LayerFn<C, FN>where
FN: Send,
impl<C, FN> Sync for LayerFn<C, FN>where
FN: Sync,
impl<C, FN> Unpin for LayerFn<C, FN>where
FN: Unpin,
impl<C, FN> UnwindSafe for LayerFn<C, FN>where
FN: 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