Struct salvo::routing::filter::FnFilter [−][src]
pub struct FnFilter<F>(pub F);
Expand description
FnFilter
accpect a function as it’s param, use this function to filter request.
Tuple Fields
0: F
Trait Implementations
Filter Request
and returns false or true.
Create a new filter use And
filter.
Create a new filter use Or
filter.
Create a new filter use AndThen
filter.
Auto Trait Implementations
impl<F> RefUnwindSafe for FnFilter<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for FnFilter<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more