FlashStore

Trait FlashStore 

Source
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§

Source

fn load<State>(&self, req: &Request<State>) -> Option<Vec<FlashMessage>>

Source

fn insert(&self, res: &mut Response)

Source

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.

Implementors§