pub trait FlashStore:
Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn load<State>(&self, req: &Request<State>) -> Option<Vec<FlashMessage>>;
fn insert(&self, res: &mut Response);
fn clear(&self, res: &mut Response);
}Required Methods§
fn load<State>(&self, req: &Request<State>) -> Option<Vec<FlashMessage>>
fn insert(&self, res: &mut Response)
fn clear(&self, res: &mut Response)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.