rocket::request

Type Alias FlashMessage

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

Type alias to retrieve Flash messages from a request.

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.

Aliased Type§

struct FlashMessage<'a, 'r> { /* private fields */ }