pub struct State {
pub data: Map<dyn Any + Send + Sync>,
}Expand description
The type-erased state carried through the handler chain.
Fields§
§data: Map<dyn Any + Send + Sync>The type-erased state map.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for State
impl !UnwindSafe for State
impl Freeze for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
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
Source§impl<T> IntoResponse<T> for Twhere
T: Send,
impl<T> IntoResponse<T> for Twhere
T: Send,
Source§fn into_response(self) -> T
fn into_response(self) -> T
Convert this value into a response.