tide_flash/
flash_store.rs1use crate::FlashMessage;
2
3pub trait FlashStore: std::fmt::Debug + Send + Sync + 'static {
4 fn load<State>(&self, req: &tide::Request<State>) -> Option<Vec<FlashMessage>>;
5 fn insert(&self, res: &mut tide::Response);
6 fn clear(&self, res: &mut tide::Response);
7}