pub struct FlashMiddleware<Store> {
pub store: Store,
}Fields§
§store: StoreImplementations§
Source§impl<Store: FlashStore> FlashMiddleware<Store>
impl<Store: FlashStore> FlashMiddleware<Store>
Trait Implementations§
Source§impl<State, Store> Middleware<State> for FlashMiddleware<Store>
impl<State, Store> Middleware<State> for FlashMiddleware<Store>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request<State>,
next: Next<'life1, State>,
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request<State>,
next: Next<'life1, State>,
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asynchronously handle the request, and return a response.
Auto Trait Implementations§
impl<Store> Freeze for FlashMiddleware<Store>where
Store: Freeze,
impl<Store> RefUnwindSafe for FlashMiddleware<Store>where
Store: RefUnwindSafe,
impl<Store> Send for FlashMiddleware<Store>where
Store: Send,
impl<Store> Sync for FlashMiddleware<Store>where
Store: Sync,
impl<Store> Unpin for FlashMiddleware<Store>where
Store: Unpin,
impl<Store> UnwindSafe for FlashMiddleware<Store>where
Store: 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