Struct salvo::routing::filter::MethodFilter [−][src]
pub struct MethodFilter(pub Method);
Expand description
Filter by request method
Tuple Fields
0: Method
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.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MethodFilter
impl Send for MethodFilter
impl Sync for MethodFilter
impl Unpin for MethodFilter
impl UnwindSafe for MethodFilter
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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