Struct salvo_flash::FlashHandler
source · pub struct FlashHandler<S> {
pub minimum_level: Option<FlashLevel>,
/* private fields */
}
Expand description
FlashHandler
Fields§
§minimum_level: Option<FlashLevel>
Minimum level of messages to be displayed.
Implementations§
source§impl<S> FlashHandler<S>
impl<S> FlashHandler<S>
sourcepub fn minimum_level(
&mut self,
level: impl Into<Option<FlashLevel>>
) -> &mut Self
pub fn minimum_level(
&mut self,
level: impl Into<Option<FlashLevel>>
) -> &mut Self
Sets the minimum level of messages to be displayed.
Trait Implementations§
source§impl<S: FlashStore> Debug for FlashHandler<S>
impl<S: FlashStore> Debug for FlashHandler<S>
source§impl<S> Handler for FlashHandler<S>where
S: FlashStore,
impl<S> Handler for FlashHandler<S>where
S: FlashStore,
source§fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
Handle http request.