pub struct MapStateLayer<F> { /* private fields */ }
Expand description
Middleware that can be used to map the state, and pass it as the new state for the inner service.
Implementations§
Source§impl<F> MapStateLayer<F>
impl<F> MapStateLayer<F>
Sourcepub const fn new(f: F) -> Self
pub const fn new(f: F) -> Self
Create a new MapStateLayer
with the given constructor.
Trait Implementations§
Source§impl<F: Clone> Clone for MapStateLayer<F>
impl<F: Clone> Clone for MapStateLayer<F>
Source§impl<F> Debug for MapStateLayer<F>
impl<F> Debug for MapStateLayer<F>
Auto Trait Implementations§
impl<F> Freeze for MapStateLayer<F>where
F: Freeze,
impl<F> RefUnwindSafe for MapStateLayer<F>where
F: RefUnwindSafe,
impl<F> Send for MapStateLayer<F>where
F: Send,
impl<F> Sync for MapStateLayer<F>where
F: Sync,
impl<F> Unpin for MapStateLayer<F>where
F: Unpin,
impl<F> UnwindSafe for MapStateLayer<F>where
F: 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