Type Definition rocket::request::FlashMessage[][src]

type FlashMessage<'a, 'r> = Flash<&'a Request<'r>>;
Expand description

Type alias to retrieve Flash messages from a request.

Flash Cookie

A FlashMessage holds the parsed contents of the flash cookie. As long as there is a flash cookie present (set by the Flash Responder), a FlashMessage request guard will succeed.

The flash cookie is cleared if either the name() or msg() method is called. If neither method is called, the flash cookie is not cleared.