ResponseFlashExt

Trait ResponseFlashExt 

Source
pub trait ResponseFlashExt {
    // Required methods
    fn flash(&mut self, level: &str, msg: String);
    fn flash_success<S: Into<String>>(&mut self, msg: S);
    fn flash_info<S: Into<String>>(&mut self, msg: S);
    fn flash_warn<S: Into<String>>(&mut self, msg: S);
    fn flash_error<S: Into<String>>(&mut self, msg: S);
    fn flash_debug<S: Into<String>>(&mut self, msg: S);
}

Required Methods§

Source

fn flash(&mut self, level: &str, msg: String)

Source

fn flash_success<S: Into<String>>(&mut self, msg: S)

Source

fn flash_info<S: Into<String>>(&mut self, msg: S)

Source

fn flash_warn<S: Into<String>>(&mut self, msg: S)

Source

fn flash_error<S: Into<String>>(&mut self, msg: S)

Source

fn flash_debug<S: Into<String>>(&mut self, msg: S)

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.

Implementations on Foreign Types§

Source§

impl ResponseFlashExt for Response

Source§

fn flash(&mut self, level: &str, message: String)

Source§

fn flash_success<S: Into<String>>(&mut self, msg: S)

Source§

fn flash_info<S: Into<String>>(&mut self, msg: S)

Source§

fn flash_warn<S: Into<String>>(&mut self, msg: S)

Source§

fn flash_error<S: Into<String>>(&mut self, msg: S)

Source§

fn flash_debug<S: Into<String>>(&mut self, msg: S)

Implementors§