tide-flash 0.1.0

Tide (http-rs/tide) Flash Messages Middleware
Documentation
1
2
3
4
5
6
7
use crate::FlashMessage;

pub trait FlashStore: std::fmt::Debug + Send + Sync + 'static {
    fn load<State>(&self, req: &tide::Request<State>) -> Option<Vec<FlashMessage>>;
    fn insert(&self, res: &mut tide::Response);
    fn clear(&self, res: &mut tide::Response);
}